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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

415 #[test]
416 #[serial]
417 fn test_list_verbose() {
418 use tempfile::tempdir;
419
420 let _guard = DirGuard::new();
421 let temp = tempdir().unwrap();
422 let repo_path = temp.path();
423
424 // Initialize a repository and create a view, then drop to release lock
425 {
426 let mut repo = Repository::init(repo_path).unwrap();
427 repo.create_view("feature").unwrap();
428 }
429
430 // Change to the repo directory
431 std::env::set_current_dir(repo_path).unwrap();
432
433 // List views with verbose output (same as default now)
434 let cmd = List::new().with_verbose(true);
435 let result = cmd.run();
436 assert!(result.is_ok());
437 }
438
439 #[test]
440 #[serial]

Callers

nothing calls this directly

Calls 5

unwrapMethod · 0.45
pathMethod · 0.45
create_viewMethod · 0.45
with_verboseMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected