Skip to content

Commit b307d9a

Browse files
committed
refactor CUDA tests to be more readable
1 parent a519fc3 commit b307d9a

File tree

3 files changed

+483
-453
lines changed

3 files changed

+483
-453
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mod cache;
3737
mod client;
3838
mod cmdline;
3939
mod commands;
40-
mod compiler;
40+
pub mod compiler;
4141
pub mod config;
4242
pub mod dist;
4343
mod jobserver;

src/server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,14 +1540,14 @@ where
15401540
}
15411541
}
15421542

1543-
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
1543+
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq)]
15441544
pub struct PerLanguageCount {
15451545
counts: HashMap<String, u64>,
15461546
adv_counts: HashMap<String, u64>,
15471547
}
15481548

15491549
impl PerLanguageCount {
1550-
fn increment(&mut self, kind: &CompilerKind, lang: &Language) {
1550+
pub fn increment(&mut self, kind: &CompilerKind, lang: &Language) {
15511551
let lang_comp_key = kind.lang_comp_kind(lang);
15521552
let adv_count = self.adv_counts.entry(lang_comp_key).or_insert(0);
15531553
*adv_count += 1;
@@ -1575,7 +1575,7 @@ impl PerLanguageCount {
15751575
}
15761576

15771577
/// Statistics about the server.
1578-
#[derive(Serialize, Deserialize, Clone, Debug)]
1578+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
15791579
pub struct ServerStats {
15801580
/// The count of client compile requests.
15811581
pub compile_requests: u64,

0 commit comments

Comments
 (0)