MCPcopy Index your code
hub / github.com/go-task/task / TestRepoCacheKey_Consistency

Function TestRepoCacheKey_Consistency

taskfile/node_git_test.go:234–247  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

232}
233
234func 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}

Callers

nothing calls this directly

Calls 2

repoCacheKeyMethod · 0.95
NewGitNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…