Skip to content

Commit bda4f5c

Browse files
committed
Add test for parsing assign.review_prefs
It is an empty table without any fields at the moment, so let's make sure that it can be parsed like this.
1 parent c6ba29d commit bda4f5c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/config.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,4 +777,16 @@ mod tests {
777777
}
778778
);
779779
}
780+
781+
#[test]
782+
fn assign_review_prefs() {
783+
let config = r#"
784+
[assign.review_prefs]
785+
"#;
786+
let config = toml::from_str::<Config>(&config).unwrap();
787+
assert!(matches!(
788+
config.assign.and_then(|c| c.review_prefs),
789+
Some(AssignReviewPrefsConfig {})
790+
));
791+
}
780792
}

0 commit comments

Comments
 (0)