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

Function test_print_output_direct_json

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

Source from the content-addressed store, hash-verified

408
409 #[test]
410 fn test_print_output_direct_json() {
411 let json_fn = || Ok(r#"{"test": true}"#.to_string());
412 let yaml_fn = || Ok("test: true".to_string());
413
414 let result = print_output_direct("json", json_fn, yaml_fn);
415 assert!(result.is_ok());
416 assert!(result.unwrap());
417 }
418
419 #[test]
420 fn test_print_output_direct_yaml() {

Callers

nothing calls this directly

Calls 1

print_output_directFunction · 0.85

Tested by

no test coverage detected