(t *testing.T)
| 232 | } |
| 233 | |
| 234 | func TestRepoCacheKey_Consistency(t *testing.T) { |
| 235 | t.Parallel() |
| 236 | |
| 237 | // Calling repoCacheKey multiple times on same node should return same key |
| 238 | node, err := NewGitNode("https://github.com/foo/bar.git//file.yml?ref=main", "", false) |
| 239 | require.NoError(t, err) |
| 240 | |
| 241 | key1 := node.repoCacheKey() |
| 242 | key2 := node.repoCacheKey() |
| 243 | key3 := node.repoCacheKey() |
| 244 | |
| 245 | assert.Equal(t, key1, key2) |
| 246 | assert.Equal(t, key2, key3) |
| 247 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…