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

Function test_list_verbose

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

Source from the content-addressed store, hash-verified

256 #[test]
257 #[serial]
258 fn test_list_verbose() {
259 use tempfile::tempdir;
260
261 let _guard = DirGuard::new();
262 let temp = tempdir().unwrap();
263 let repo_path = temp.path();
264
265 // Initialize a repository and create a view, then drop to release lock
266 {
267 let mut repo = Repository::init(repo_path).unwrap();
268 repo.create_view("feature").unwrap();
269 }
270
271 // Change to the repo directory
272 std::env::set_current_dir(repo_path).unwrap();
273
274 // List views with verbose output
275 let cmd = List::new().with_verbose(true);
276 let result = cmd.run();
277 assert!(result.is_ok());
278 }
279
280 #[test]
281 #[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