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

Function TestGitNode_httpsWithDir

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

Source from the content-addressed store, hash-verified

61}
62
63func TestGitNode_httpsWithDir(t *testing.T) {
64 t.Parallel()
65
66 node, err := NewGitNode("https://github.com/foo/bar.git//directory/Taskfile.yml?ref=main", "", false)
67 assert.NoError(t, err)
68 assert.Equal(t, "main", node.ref)
69 assert.Equal(t, "directory/Taskfile.yml", node.path)
70 assert.Equal(t, "https://github.com/foo/bar.git//directory/Taskfile.yml?ref=main", node.Location())
71 assert.Equal(t, "https://github.com/foo/bar.git", node.url.String())
72 entrypoint, err := node.ResolveEntrypoint("common.yml")
73 assert.NoError(t, err)
74 assert.Equal(t, "https://github.com/foo/bar.git//directory/common.yml?ref=main", entrypoint)
75}
76
77func TestGitNode_CacheKey(t *testing.T) {
78 t.Parallel()

Callers

nothing calls this directly

Calls 4

LocationMethod · 0.95
ResolveEntrypointMethod · 0.95
NewGitNodeFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…