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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

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