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

Function assert_setting_line_with_scope

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

Source from the content-addressed store, hash-verified

83}
84
85fn assert_setting_line_with_scope(output: &str, key: &str, expected: &str, scope: &str) {
86 let needle = format!("{key} = {expected} ({scope})");
87 assert!(
88 output.contains(&needle),
89 "expected setting line '{needle}' in output:\n{output}"
90 );
91}
92
93/// Poll `settings get` until the expected value and scope appear for a key.
94async fn wait_for_setting_value(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected