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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

1149 #[test]
1150 #[file_serial]
1151 fn test_list_verbose() {
1152 use tempfile::tempdir;
1153
1154 let _guard = DirGuard::new();
1155 let temp = tempdir().unwrap();
1156 let repo_path = temp.path();
1157
1158 // Initialize a repository and create a view, then drop to release lock
1159 {
1160 let mut repo = Repository::init(repo_path).unwrap();
1161 repo.create_view("feature").unwrap();
1162 }
1163
1164 // Change to the repo directory
1165 std::env::set_current_dir(repo_path).unwrap();
1166
1167 // List views with verbose output (same as default now)
1168 let cmd = List::new().with_verbose(true);
1169 let result = cmd.run();
1170 assert!(result.is_ok());
1171 }
1172
1173 #[test]
1174 #[file_serial]

Callers

nothing calls this directly

Calls 6

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
create_viewMethod · 0.45
with_verboseMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected