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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected