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

Function enabled_repository

atomic-cli/src/commands/git/hook_dispatchers.rs:293–299  ·  view source on GitHub ↗

A Git repository with an Atomic repository and the shim enabled.

()

Source from the content-addressed store, hash-verified

291
292 /// A Git repository with an Atomic repository and the shim enabled.
293 fn enabled_repository() -> TempDir {
294 let root = TempDir::new().unwrap();
295 drop(GitRepository::init(root.path()).unwrap());
296 drop(atomic_repository::Repository::init(root.path()).unwrap());
297 enable_shim(root.path(), false).unwrap();
298 root
299 }
300
301 #[test]
302 fn enable_installs_the_dispatcher_table_and_uninstall_removes_it() {

Calls 4

enable_shimFunction · 0.85
initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45