@@ -35,18 +35,18 @@ fn url_encode(input: &str) -> String {
35
35
36
36
#[ derive( Serialize , Deserialize ) ]
37
37
pub struct TestResults {
38
- crates : Vec < CrateResult > ,
38
+ pub crates : Vec < CrateResult > ,
39
39
}
40
40
41
41
#[ derive( Serialize , Deserialize , Clone ) ]
42
- struct CrateResult {
42
+ pub struct CrateResult {
43
43
name : String ,
44
44
url : String ,
45
- res : Comparison ,
45
+ pub res : Comparison ,
46
46
runs : [ Option < BuildTestResult > ; 2 ] ,
47
47
}
48
48
49
- string_enum ! ( enum Comparison {
49
+ string_enum ! ( pub enum Comparison {
50
50
Regressed => "regressed" ,
51
51
Fixed => "fixed" ,
52
52
Skipped => "skipped" ,
@@ -212,7 +212,7 @@ pub fn gen<DB: ReadResults, W: ReportWriter + Display>(
212
212
ex : & Experiment ,
213
213
dest : & W ,
214
214
config : & Config ,
215
- ) -> Fallible < ( ) > {
215
+ ) -> Fallible < ( TestResults ) > {
216
216
let res = generate_report ( db, config, ex) ?;
217
217
218
218
info ! ( "writing results to {}" , dest) ;
@@ -235,7 +235,7 @@ pub fn gen<DB: ReadResults, W: ReportWriter + Display>(
235
235
info ! ( "writing logs" ) ;
236
236
write_logs ( db, ex, dest, config) ?;
237
237
238
- Ok ( ( ) )
238
+ Ok ( res )
239
239
}
240
240
241
241
fn crate_to_name ( c : & Crate , shas : & HashMap < GitHubRepo , String > ) -> Fallible < String > {
0 commit comments