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

Function test_options_exclude

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

Source from the content-addressed store, hash-verified

1025
1026 #[test]
1027 fn test_options_exclude() {
1028 let opts = TreeCollectOptions::new()
1029 .exclude("target/")
1030 .exclude(".git/");
1031
1032 assert_eq!(opts.exclude_patterns.len(), 2);
1033 assert!(opts.exclude_patterns.contains(&"target/".to_string()));
1034 assert!(opts.exclude_patterns.contains(&".git/".to_string()));
1035 }
1036
1037 #[test]
1038 fn test_options_chaining() {

Callers

nothing calls this directly

Calls 1

excludeMethod · 0.45

Tested by

no test coverage detected