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

Function test_list_default_view

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

Source from the content-addressed store, hash-verified

207 #[test]
208 #[serial]
209 fn test_list_default_view() {
210 use tempfile::tempdir;
211
212 let _guard = DirGuard::new();
213 let temp = tempdir().unwrap();
214 let repo_path = temp.path();
215
216 // Initialize a repository and drop to release lock
217 {
218 let _repo = Repository::init(repo_path).unwrap();
219 }
220
221 // Change to the repo directory
222 std::env::set_current_dir(repo_path).unwrap();
223
224 // List views
225 let cmd = List::new();
226 let result = cmd.run();
227 assert!(result.is_ok());
228 }
229
230 #[test]
231 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected