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

Method new

atomic-repository/src/repository/tests/mod.rs:80–83  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

78#[allow(dead_code)]
79impl TestRepository {
80 fn new(repo: Repository) -> Self {
81 let working_copy = repo.require_working_copy_id().unwrap();
82 Self { repo, working_copy }
83 }
84
85 pub fn working_copy(&self) -> WorkingCopyId {
86 self.working_copy

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45

Tested by

no test coverage detected