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

Function test_is_always_ignored

atomic-repository/src/status.rs:1510–1525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1508
1509 #[test]
1510 fn test_is_always_ignored() {
1511 assert!(is_always_ignored(Path::new(".atomic")));
1512 assert!(is_always_ignored(Path::new(".atomic/changes")));
1513 assert!(is_always_ignored(Path::new("src/.atomic/test")));
1514 assert!(is_always_ignored(Path::new(".git")));
1515 assert!(is_always_ignored(Path::new(".git/objects")));
1516 assert!(is_always_ignored(Path::new(".atomic-sandbox")));
1517 assert!(is_always_ignored(Path::new(
1518 ".atomic-sandbox.d/pristine.redb"
1519 )));
1520
1521 assert!(!is_always_ignored(Path::new("src")));
1522 assert!(!is_always_ignored(Path::new("src/main.rs")));
1523 assert!(!is_always_ignored(Path::new("atomic")));
1524 assert!(!is_always_ignored(Path::new(".atomic-sandbox-notes")));
1525 }
1526
1527 #[test]
1528 fn test_hash_file_contents() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected