MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_options_is_excluded

Function test_options_is_excluded

atomic-core/src/output/repo/tree.rs:1075–1083  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1073
1074 #[test]
1075 fn test_options_is_excluded() {
1076 let opts = TreeCollectOptions::new()
1077 .exclude("target/")
1078 .exclude(".git/");
1079
1080 assert!(opts.is_excluded("target/debug/main"));
1081 assert!(opts.is_excluded(".git/config"));
1082 assert!(!opts.is_excluded("src/main.rs"));
1083 }
1084
1085 #[test]
1086 fn test_options_is_hidden_name() {

Callers

nothing calls this directly

Calls 1

excludeMethod · 0.45

Tested by

no test coverage detected