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

Function test_connection_info

crates/openshell-ocsf/src/objects/connection.rs:33–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32 #[test]
33 fn test_connection_info() {
34 let info = ConnectionInfo::new("tcp");
35 let json = serde_json::to_value(&info).unwrap();
36 assert_eq!(json["protocol_name"], "tcp");
37 }
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected