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

Source from the content-addressed store, hash-verified

369 #[test]
370 #[serial]
371 fn test_list_default_view() {
372 use tempfile::tempdir;
373
374 let _guard = DirGuard::new();
375 let temp = tempdir().unwrap();
376 let repo_path = temp.path();
377
378 // Initialize a repository and drop to release lock
379 {
380 let _repo = Repository::init(repo_path).unwrap();
381 }
382
383 // Change to the repo directory
384 std::env::set_current_dir(repo_path).unwrap();
385
386 // List views (default = verbose)
387 let cmd = List::new();
388 let result = cmd.run();
389 assert!(result.is_ok());
390 }
391
392 #[test]
393 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected