(t *testing.T, dir string, want map[string]string)
| 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 | |
| 405 | func TestE2EGitCheckoutRestorePath(t *testing.T) { |
| 406 | repo := newMountedE2ERepo(t) |
| 407 | |
| 408 | readmePath := filepath.Join(repo.mountPath, "README.md") |
no test coverage detected