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

Function test_container_minimal

crates/openshell-ocsf/src/objects/container.rs:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50 #[test]
51 fn test_container_minimal() {
52 let container = Container {
53 name: "test".to_string(),
54 uid: None,
55 image: None,
56 };
57 let json = serde_json::to_value(&container).unwrap();
58 assert!(json.get("uid").is_none());
59 assert!(json.get("image").is_none());
60 }
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected