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

Function assert_setting_line

e2e/rust/tests/settings_management.rs:77–83  ·  view source on GitHub ↗
(output: &str, key: &str, expected: &str)

Source from the content-addressed store, hash-verified

75}
76
77fn assert_setting_line(output: &str, key: &str, expected: &str) {
78 let needle = format!("{key} = {expected}");
79 assert!(
80 output.contains(&needle),
81 "expected setting line '{needle}' in output:\n{output}"
82 );
83}
84
85fn assert_setting_line_with_scope(output: &str, key: &str, expected: &str, scope: &str) {
86 let needle = format!("{key} = {expected} ({scope})");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected