MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test

Method test

src/system/info.rs:40–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38#[cfg(test)]
39impl SystemInfo {
40 pub fn test() -> Self {
41 SystemInfo {
42 os: SupportedOs::Linux(crate::system::LinuxDistribution::Ubuntu {
43 version: "20.04".into(),
44 }),
45 arch: "x86_64".to_string(),
46 host: "host".to_string(),
47 user: "user".to_string(),
48 cpu_brand: "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz".to_string(),
49 cpu_name: "cpu0".to_string(),
50 cpu_vendor_id: "GenuineIntel".to_string(),
51 cpu_cores: 2,
52 total_memory_gb: 8,
53 cpu_flags: vec![
54 "sse2".to_string(),
55 "avx".to_string(),
56 "avx2".to_string(),
57 "erms".to_string(),
58 ],
59 }
60 }
61}
62
63#[cfg(target_os = "linux")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected