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

Function test_list_default_view

atomic-cli/src/commands/view/list.rs:1102–1121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1100 #[test]
1101 #[file_serial]
1102 fn test_list_default_view() {
1103 use tempfile::tempdir;
1104
1105 let _guard = DirGuard::new();
1106 let temp = tempdir().unwrap();
1107 let repo_path = temp.path();
1108
1109 // Initialize a repository and drop to release lock
1110 {
1111 let _repo = Repository::init(repo_path).unwrap();
1112 }
1113
1114 // Change to the repo directory
1115 std::env::set_current_dir(repo_path).unwrap();
1116
1117 // List views (default = verbose)
1118 let cmd = List::new();
1119 let result = cmd.run();
1120 assert!(result.is_ok());
1121 }
1122
1123 #[test]
1124 #[file_serial]

Callers

nothing calls this directly

Calls 4

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected