Skip to content

Commit c5edc79

Browse files
committed
chore: M5 CI/Workflow Sweep - final synchronisation
1 parent ad56d76 commit c5edc79

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/abi/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,38 +279,38 @@ mod tests {
279279

280280
#[test]
281281
fn test_parse_must_rule_gt() {
282-
let rule = parse_must_rule("port > 0").unwrap();
282+
let rule = parse_must_rule("port > 0").expect("TODO: handle error");
283283
assert_eq!(rule.key, "port");
284284
assert_eq!(rule.operator, ">");
285285
assert_eq!(rule.value, "0");
286286
}
287287

288288
#[test]
289289
fn test_parse_must_rule_lt() {
290-
let rule = parse_must_rule("port < 65536").unwrap();
290+
let rule = parse_must_rule("port < 65536").expect("TODO: handle error");
291291
assert_eq!(rule.key, "port");
292292
assert_eq!(rule.operator, "<");
293293
assert_eq!(rule.value, "65536");
294294
}
295295

296296
#[test]
297297
fn test_parse_must_rule_ne() {
298-
let rule = parse_must_rule("host != ''").unwrap();
298+
let rule = parse_must_rule("host != ''").expect("TODO: handle error");
299299
assert_eq!(rule.key, "host");
300300
assert_eq!(rule.operator, "!=");
301301
assert_eq!(rule.value, "''");
302302
}
303303

304304
#[test]
305305
fn test_parse_trust_source() {
306-
let trust = parse_trust_source("signed-by: ci-pipeline").unwrap();
306+
let trust = parse_trust_source("signed-by: ci-pipeline").expect("TODO: handle error");
307307
assert_eq!(trust.trust_type, "signed-by");
308308
assert_eq!(trust.source, "ci-pipeline");
309309
}
310310

311311
#[test]
312312
fn test_parse_dust_rule() {
313-
let dust = parse_dust_rule("remove: deprecated-keys").unwrap();
313+
let dust = parse_dust_rule("remove: deprecated-keys").expect("TODO: handle error");
314314
assert_eq!(dust.action, "remove");
315315
assert_eq!(dust.target, "deprecated-keys");
316316
}

src/codegen/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ port = 8080
627627
host = "localhost"
628628
debug = true
629629
"#;
630-
let entries = parse_toml(content).unwrap();
630+
let entries = parse_toml(content).expect("TODO: handle error");
631631
assert!(entries.iter().any(|e| e.key == "server.port"
632632
&& e.value == "8080"
633633
&& e.value_type == ValueType::Int));
@@ -642,7 +642,7 @@ debug = true
642642
#[test]
643643
fn test_parse_json_simple() {
644644
let content = r#"{"port": 8080, "host": "localhost", "debug": true}"#;
645-
let entries = parse_json(content).unwrap();
645+
let entries = parse_json(content).expect("TODO: handle error");
646646
assert!(
647647
entries
648648
.iter()
@@ -661,7 +661,7 @@ debug = true
661661
#[test]
662662
fn test_parse_yaml_simple() {
663663
let content = "server:\n port: 8080\n host: localhost\n debug: true\n";
664-
let entries = parse_yaml(content).unwrap();
664+
let entries = parse_yaml(content).expect("TODO: handle error");
665665
assert!(entries.iter().any(|e| e.key == "server.port"
666666
&& e.value == "8080"
667667
&& e.value_type == ValueType::Int));
@@ -676,7 +676,7 @@ debug = true
676676
#[test]
677677
fn test_parse_ini_simple() {
678678
let content = "[server]\nport = 8080\nhost = localhost\ndebug = true\n";
679-
let entries = parse_ini(content).unwrap();
679+
let entries = parse_ini(content).expect("TODO: handle error");
680680
assert!(entries.iter().any(|e| e.key == "server.port"
681681
&& e.value == "8080"
682682
&& e.value_type == ValueType::Int));

0 commit comments

Comments
 (0)