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

Method colocated

atomic-cli/tests/it/status_git_cb11a_test.rs:33–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32impl Fixture {
33 fn colocated() -> Self {
34 let fixture = Self::empty();
35 fixture.git_ok(&["init", "-q", "-b", "main"]);
36 fixture.git_ok(&["config", "user.name", "CB-11A Tests"]);
37 fixture.git_ok(&["config", "user.email", "cb11a@example.com"]);
38 fixture.git_ok(&["config", "core.autocrlf", "false"]);
39 fixture.git_ok(&["config", "commit.gpgsign", "false"]);
40 fs::write(fixture.root().join("tracked.txt"), b"l1\nl2\nl3\n")
41 .expect("write initial tracked file");
42 fixture.git_ok(&["add", "tracked.txt"]);
43 fixture.git_ok(&["commit", "--no-gpg-sign", "-q", "-m", "base"]);
44 fixture.atomic_ok(&["git", "import", "--no-vault"]);
45 fixture.atomic_ok(&["git", "shim", "reconcile"]);
46 assert!(
47 fixture
48 .root()
49 .join(".atomic/bridge/workspace.json")
50 .is_file(),
51 "Git reconciliation must establish a valid shim checkpoint"
52 );
53 fixture
54 }
55
56 fn empty() -> Self {
57 Self {

Callers

nothing calls this directly

Calls 4

writeFunction · 0.70
git_okMethod · 0.45
rootMethod · 0.45
atomic_okMethod · 0.45

Tested by

no test coverage detected