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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

1056 #[test]
1057 #[serial]
1058 fn test_list_verbose() {
1059 use tempfile::tempdir;
1060
1061 let _guard = DirGuard::new();
1062 let temp = tempdir().unwrap();
1063 let repo_path = temp.path();
1064
1065 // Initialize a repository and create a view, then drop to release lock
1066 {
1067 let mut repo = Repository::init(repo_path).unwrap();
1068 repo.create_view("feature").unwrap();
1069 }
1070
1071 // Change to the repo directory
1072 std::env::set_current_dir(repo_path).unwrap();
1073
1074 // List views with verbose output (same as default now)
1075 let cmd = List::new().with_verbose(true);
1076 let result = cmd.run();
1077 assert!(result.is_ok());
1078 }
1079
1080 #[test]
1081 #[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