@@ -147,30 +147,30 @@ impl TestFn {
147
147
/// set-up & tear-down before running a piece of code repeatedly via a
148
148
/// call to `iter`.
149
149
pub struct BenchHarness {
150
- priv iterations : u64 ,
151
- priv ns_start : u64 ,
152
- priv ns_end : u64 ,
153
- bytes : u64
150
+ iterations : u64 ,
151
+ ns_start : u64 ,
152
+ ns_end : u64 ,
153
+ pub bytes : u64 ,
154
154
}
155
155
156
156
// The definition of a single test. A test runner will run a list of
157
157
// these.
158
158
#[ deriving( Clone ) ]
159
159
pub struct TestDesc {
160
- name : TestName ,
161
- ignore : bool ,
162
- should_fail : bool
160
+ pub name : TestName ,
161
+ pub ignore : bool ,
162
+ pub should_fail : bool ,
163
163
}
164
164
165
165
pub struct TestDescAndFn {
166
- desc : TestDesc ,
167
- testfn : TestFn ,
166
+ pub desc : TestDesc ,
167
+ pub testfn : TestFn ,
168
168
}
169
169
170
170
#[ deriving( Clone , Encodable , Decodable , Eq , Show ) ]
171
171
pub struct Metric {
172
- priv value : f64 ,
173
- priv noise : f64
172
+ value : f64 ,
173
+ noise : f64
174
174
}
175
175
176
176
impl Metric {
@@ -242,15 +242,15 @@ pub fn test_main_static(args: &[~str], tests: &[TestDescAndFn]) {
242
242
}
243
243
244
244
pub struct TestOpts {
245
- filter : Option < ~str > ,
246
- run_ignored : bool ,
247
- run_tests : bool ,
248
- run_benchmarks : bool ,
249
- ratchet_metrics : Option < Path > ,
250
- ratchet_noise_percent : Option < f64 > ,
251
- save_metrics : Option < Path > ,
252
- test_shard : Option < ( uint , uint ) > ,
253
- logfile : Option < Path >
245
+ pub filter : Option < ~str > ,
246
+ pub run_ignored : bool ,
247
+ pub run_tests : bool ,
248
+ pub run_benchmarks : bool ,
249
+ pub ratchet_metrics : Option < Path > ,
250
+ pub ratchet_noise_percent : Option < f64 > ,
251
+ pub save_metrics : Option < Path > ,
252
+ pub test_shard : Option < ( uint , uint ) > ,
253
+ pub logfile : Option < Path >
254
254
}
255
255
256
256
/// Result of parsing the options.
@@ -375,8 +375,8 @@ pub fn opt_shard(maybestr: Option<~str>) -> Option<(uint,uint)> {
375
375
376
376
#[ deriving( Clone , Eq ) ]
377
377
pub struct BenchSamples {
378
- priv ns_iter_summ : stats:: Summary ,
379
- priv mb_s : uint
378
+ ns_iter_summ : stats:: Summary ,
379
+ mb_s : uint ,
380
380
}
381
381
382
382
#[ deriving( Clone , Eq ) ]
0 commit comments