MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_device_linux

Function test_device_linux

crates/openshell-ocsf/src/objects/device.rs:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 #[test]
44 fn test_device_linux() {
45 let device = Device::linux("sandbox-abc123");
46 let json = serde_json::to_value(&device).unwrap();
47 assert_eq!(json["hostname"], "sandbox-abc123");
48 assert_eq!(json["os"]["name"], "Linux");
49 }
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected