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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

270 #[test]
271 #[serial]
272 fn test_list_verbose() {
273 use tempfile::tempdir;
274
275 let _guard = DirGuard::new();
276 let temp = tempdir().unwrap();
277 let repo_path = temp.path();
278
279 // Initialize a repository and create a view, then drop to release lock
280 {
281 let mut repo = Repository::init(repo_path).unwrap();
282 repo.create_view("feature").unwrap();
283 }
284
285 // Change to the repo directory
286 std::env::set_current_dir(repo_path).unwrap();
287
288 // List views with verbose output (same as default now)
289 let cmd = List::new().with_verbose(true);
290 let result = cmd.run();
291 assert!(result.is_ok());
292 }
293
294 #[test]
295 #[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