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

Function test_parse_model_empty_object

atomic-agent/src/hooks/cline.rs:1127–1134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1125
1126 #[test]
1127 fn test_parse_model_empty_object() {
1128 let hook = make_hook();
1129 let input = br#"{"taskId": "t1", "model": {}}"#;
1130 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
1131 let raw = event.raw_json.unwrap();
1132 assert!(raw.get("model_name").is_none());
1133 assert!(raw.get("vendor").is_none());
1134 }
1135
1136 // ── Full Cline payload test ─────────────────────────────────────
1137

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected