MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / kg_node_skips_none_fields

Function kg_node_skips_none_fields

atomic-core/src/pristine/vault.rs:1134–1139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1132
1133 #[test]
1134 fn kg_node_skips_none_fields() {
1135 let node = KgNode::new("x", crate::kg::ontology::Class::Memory, "z", "w");
1136 let json = serde_json::to_string(&node).unwrap();
1137 assert!(!json.contains("summary"));
1138 assert!(!json.contains("metadata"));
1139 }
1140
1141 #[test]
1142 fn embedding_record_roundtrip() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected