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

Function test_print_output_single_yaml

crates/openshell-cli/src/output.rs:398–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396
397 #[test]
398 fn test_print_output_single_yaml() {
399 let item = TestItem {
400 id: 42,
401 name: "single".to_string(),
402 };
403
404 let result = print_output_single("yaml", &item, test_item_to_json);
405 assert!(result.is_ok());
406 assert!(result.unwrap());
407 }
408
409 #[test]
410 fn test_print_output_direct_json() {

Callers

nothing calls this directly

Calls 1

print_output_singleFunction · 0.85

Tested by

no test coverage detected