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

Function normalizes_and_deduplicates

crates/openshell-core/src/inference.rs:333–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331
332 #[test]
333 fn normalizes_and_deduplicates() {
334 let input = vec![
335 "OpenAI_Chat_Completions".to_string(),
336 " openai_chat_completions ".to_string(),
337 "anthropic_messages".to_string(),
338 ];
339 let result = normalize_protocols(&input);
340 assert_eq!(
341 result,
342 vec!["openai_chat_completions", "anthropic_messages"]
343 );
344 }
345
346 #[test]
347 fn skips_empty_and_whitespace() {

Callers

nothing calls this directly

Calls 1

normalize_protocolsFunction · 0.85

Tested by

no test coverage detected