Skip to content

Commit d9ceab9

Browse files
committed
add test for exclude feature
1 parent ea13ff7 commit d9ceab9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/bootstrap/src/core/config/tests.rs

+14
Original file line numberDiff line numberDiff line change
@@ -515,3 +515,17 @@ fn test_explicit_stage() {
515515
assert!(!config.explicit_stage_from_config);
516516
assert!(!config.is_explicit_stage());
517517
}
518+
519+
#[test]
520+
fn test_exclude() {
521+
let config = parse("build.exclude=[\"test/codegen\"]");
522+
523+
let first_excluded = config
524+
.skip
525+
.first()
526+
.expect("Expected at least one excluded path")
527+
.to_str()
528+
.expect("Failed to convert excluded path to string");
529+
530+
assert_eq!(first_excluded, "test/codegen");
531+
}

0 commit comments

Comments
 (0)