(output: &str, key: &str, expected: &str, scope: &str)
| 83 | } |
| 84 | |
| 85 | fn 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. |
| 94 | async fn wait_for_setting_value( |
no outgoing calls
no test coverage detected