MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / assertGitStatus

Function assertGitStatus

e2e_git_test.go:399–405  ·  view source on GitHub ↗
(t *testing.T, dir string, want map[string]string)

Source from the content-addressed store, hash-verified

397 if got := readFileStr(t, filepath.Join(repo.mountPath, "README.md")); got != localChange {
398 t.Fatalf("README.md changed after failed checkout: %q", got)
399 }
400 assertGitStatus(t, repo.mountPath, map[string]string{"README.md": " M"})
401 assertPathExists(t, filepath.Join(repo.mountPath, "LICENSE-MIT"))
402 assertPathMissing(t, filepath.Join(repo.mountPath, "feature.txt"))
403}
404
405func TestE2EGitCheckoutRestorePath(t *testing.T) {
406 repo := newMountedE2ERepo(t)
407
408 readmePath := filepath.Join(repo.mountPath, "README.md")

Calls 1

gitStatusShortMapFunction · 0.85

Tested by

no test coverage detected