MCPcopy Create free account
hub / github.com/evilsocket/cake / mock_worker_info

Function mock_worker_info

cake-core/tests/protocol.rs:30–40  ·  view source on GitHub ↗
(latency: u128)

Source from the content-addressed store, hash-verified

28}
29
30fn mock_worker_info(latency: u128) -> WorkerInfo {
31 WorkerInfo {
32 version: env!("CARGO_PKG_VERSION").to_string(),
33 dtype: "F16".to_string(),
34 os: std::env::consts::OS.to_string(),
35 arch: std::env::consts::ARCH.to_string(),
36 device: "cpu".to_string(),
37 device_idx: 0,
38 latency,
39 }
40}
41
42// ============================================================================
43// Mock Worker

Callers 1

handle_oneMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected