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

Function test_print_output_single_json

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

Source from the content-addressed store, hash-verified

384
385 #[test]
386 fn test_print_output_single_json() {
387 let item = TestItem {
388 id: 42,
389 name: "single".to_string(),
390 };
391
392 let result = print_output_single("json", &item, test_item_to_json);
393 assert!(result.is_ok());
394 assert!(result.unwrap());
395 }
396
397 #[test]
398 fn test_print_output_single_yaml() {

Callers

nothing calls this directly

Calls 1

print_output_singleFunction · 0.85

Tested by

no test coverage detected