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

Function test_item_is_hidden

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

Source from the content-addressed store, hash-verified

1198
1199 #[test]
1200 fn test_item_is_hidden() {
1201 let hidden = TreeItem::file(".gitignore", Inode::ROOT, Position::ROOT);
1202 assert!(hidden.is_hidden());
1203
1204 let visible = TreeItem::file("README.md", Inode::ROOT, Position::ROOT);
1205 assert!(!visible.is_hidden());
1206
1207 let hidden_dir = TreeItem::directory(".git", Inode::ROOT);
1208 assert!(hidden_dir.is_hidden());
1209 }
1210
1211 #[test]
1212 fn test_item_clone() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected