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

Function test_print_output_direct_yaml

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

Source from the content-addressed store, hash-verified

418
419 #[test]
420 fn test_print_output_direct_yaml() {
421 let json_fn = || Ok(r#"{"test": true}"#.to_string());
422 let yaml_fn = || Ok("test: true".to_string());
423
424 let result = print_output_direct("yaml", json_fn, yaml_fn);
425 assert!(result.is_ok());
426 assert!(result.unwrap());
427 }
428
429 #[test]
430 fn test_print_output_direct_error_propagation() {

Callers

nothing calls this directly

Calls 1

print_output_directFunction · 0.85

Tested by

no test coverage detected