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

Function TestGitNode_https

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

Source from the content-addressed store, hash-verified

47}
48
49func TestGitNode_https(t *testing.T) {
50 t.Parallel()
51
52 node, err := NewGitNode("https://github.com/foo/bar.git//Taskfile.yml?ref=main", "", false)
53 assert.NoError(t, err)
54 assert.Equal(t, "main", node.ref)
55 assert.Equal(t, "Taskfile.yml", node.path)
56 assert.Equal(t, "https://github.com/foo/bar.git//Taskfile.yml?ref=main", node.Location())
57 assert.Equal(t, "https://github.com/foo/bar.git", node.url.String())
58 entrypoint, err := node.ResolveEntrypoint("common.yml")
59 assert.NoError(t, err)
60 assert.Equal(t, "https://github.com/foo/bar.git//common.yml?ref=main", entrypoint)
61}
62
63func TestGitNode_httpsWithDir(t *testing.T) {
64 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…