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:223–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 #[test]
222 #[serial]
223 fn test_list_default_view() {
224 use tempfile::tempdir;
225
226 let _guard = DirGuard::new();
227 let temp = tempdir().unwrap();
228 let repo_path = temp.path();
229
230 // Initialize a repository and drop to release lock
231 {
232 let _repo = Repository::init(repo_path).unwrap();
233 }
234
235 // Change to the repo directory
236 std::env::set_current_dir(repo_path).unwrap();
237
238 // List views (default = verbose)
239 let cmd = List::new();
240 let result = cmd.run();
241 assert!(result.is_ok());
242 }
243
244 #[test]
245 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected