MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_context_result_is_empty

Function test_context_result_is_empty

core/src/context/mod.rs:646–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644
645 #[test]
646 fn test_context_result_is_empty() {
647 let empty = ContextResult::new("provider");
648 assert!(empty.is_empty());
649
650 let mut non_empty = ContextResult::new("provider");
651 non_empty.add_item(ContextItem::new("id", ContextType::Resource, "content"));
652 assert!(!non_empty.is_empty());
653 }
654
655 #[test]
656 fn test_context_result_to_xml() {

Callers

nothing calls this directly

Calls 1

add_itemMethod · 0.80

Tested by

no test coverage detected