(t *testing.T)
| 1134 | } |
| 1135 | |
| 1136 | func TestClientPathFromRootReturnsEmptyOutsideRepository(t *testing.T) { |
| 1137 | // Given a client outside a Git repository |
| 1138 | IsolateConfig(t) |
| 1139 | client := Client{RepoDir: t.TempDir()} |
| 1140 | |
| 1141 | // When its path relative to a repository root is requested |
| 1142 | dir := client.PathFromRoot(t.Context()) |
| 1143 | |
| 1144 | // Then no path is returned |
| 1145 | assert.Empty(t, dir) |
| 1146 | } |
| 1147 | |
| 1148 | func TestClientUnsetRemoteResolutionRemovesResolution(t *testing.T) { |
| 1149 | // Given a repository with a resolved remote |
nothing calls this directly
no test coverage detected