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

Function policy_get_base_output_parses

crates/openshell-cli/src/main.rs:4392–4409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4390
4391 #[test]
4392 fn policy_get_base_output_parses() {
4393 let cli = Cli::try_parse_from(["openshell", "policy", "get", "my-sandbox", "--base"])
4394 .expect("policy get --base should parse");
4395
4396 match cli.command {
4397 Some(Commands::Policy {
4398 command:
4399 Some(PolicyCommands::Get {
4400 name, full, base, ..
4401 }),
4402 }) => {
4403 assert_eq!(name.as_deref(), Some("my-sandbox"));
4404 assert!(!full);
4405 assert!(base);
4406 }
4407 other => panic!("expected policy get command, got: {other:?}"),
4408 }
4409 }
4410
4411 #[test]
4412 fn policy_delete_global_parses() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected