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

Function test_archive_options_should_include

atomic-repository/src/archive.rs:943–951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

941
942 #[test]
943 fn test_archive_options_should_include() {
944 let options = ArchiveOptions::new()
945 .include(&["src/*"])
946 .exclude(&["*.log"]);
947
948 assert!(options.should_include("src/main.rs"));
949 assert!(!options.should_include("build/output"));
950 assert!(!options.should_include("src/debug.log"));
951 }
952
953 #[test]
954 fn test_archive_options_should_include_no_patterns() {

Callers

nothing calls this directly

Calls 2

includeMethod · 0.80
excludeMethod · 0.45

Tested by

no test coverage detected