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:1065–1073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1063
1064 #[test]
1065 fn test_options_is_excluded() {
1066 let opts = TreeCollectOptions::new()
1067 .exclude("target/")
1068 .exclude(".git/");
1069
1070 assert!(opts.is_excluded("target/debug/main"));
1071 assert!(opts.is_excluded(".git/config"));
1072 assert!(!opts.is_excluded("src/main.rs"));
1073 }
1074
1075 #[test]
1076 fn test_options_is_hidden_name() {

Callers

nothing calls this directly

Calls 1

excludeMethod · 0.45

Tested by

no test coverage detected