MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / normalize_smoke_statuses

Function normalize_smoke_statuses

xtask/src/extension_catalog.rs:1060–1073  ·  view source on GitHub ↗
(extension: &mut SmokeConfigExtension)

Source from the content-addressed store, hash-verified

1058}
1059
1060fn normalize_smoke_statuses(extension: &mut SmokeConfigExtension) {
1061 if extension.direct.is_empty() {
1062 extension.direct = "not-run".to_owned();
1063 }
1064 if extension.server.is_empty() {
1065 extension.server = "not-run".to_owned();
1066 }
1067 if extension.restart.is_empty() {
1068 extension.restart = "not-run".to_owned();
1069 }
1070 if extension.dump_restore.is_empty() {
1071 extension.dump_restore = "not-run".to_owned();
1072 }
1073}
1074
1075fn ensure_valid_smoke_status(status: &str, id: &str, field: &str) -> Result<()> {
1076 ensure!(

Callers 1

parse_smoke_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected