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

Function test_options_exclude

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

Source from the content-addressed store, hash-verified

1015
1016 #[test]
1017 fn test_options_exclude() {
1018 let opts = TreeCollectOptions::new()
1019 .exclude("target/")
1020 .exclude(".git/");
1021
1022 assert_eq!(opts.exclude_patterns.len(), 2);
1023 assert!(opts.exclude_patterns.contains(&"target/".to_string()));
1024 assert!(opts.exclude_patterns.contains(&".git/".to_string()));
1025 }
1026
1027 #[test]
1028 fn test_options_chaining() {

Callers

nothing calls this directly

Calls 1

excludeMethod · 0.45

Tested by

no test coverage detected