(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func TestRepoCacheKey_DifferentRepos(t *testing.T) { |
| 186 | t.Parallel() |
| 187 | |
| 188 | // Different repos should have DIFFERENT cache keys |
| 189 | node1, err := NewGitNode("https://github.com/foo/bar.git//file.yml?ref=main", "", false) |
| 190 | require.NoError(t, err) |
| 191 | |
| 192 | node2, err := NewGitNode("https://github.com/foo/other.git//file.yml?ref=main", "", false) |
| 193 | require.NoError(t, err) |
| 194 | |
| 195 | key1 := node1.repoCacheKey() |
| 196 | key2 := node2.repoCacheKey() |
| 197 | |
| 198 | assert.NotEqual(t, key1, key2, "Different repos should generate different cache keys") |
| 199 | } |
| 200 | |
| 201 | func TestRepoCacheKey_NoRefVsExplicitRef(t *testing.T) { |
| 202 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…