MCPcopy
hub / github.com/go-task/task / TestGitNode_sshWithAltRepo

Function TestGitNode_sshWithAltRepo

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

Source from the content-addressed store, hash-verified

22}
23
24func TestGitNode_sshWithAltRepo(t *testing.T) {
25 t.Parallel()
26
27 node, err := NewGitNode("git@github.com:foo/bar.git//Taskfile.yml?ref=main", "", false)
28 assert.NoError(t, err)
29
30 entrypoint, err := node.ResolveEntrypoint("git@github.com:foo/other.git//Taskfile.yml?ref=dev")
31 assert.NoError(t, err)
32 assert.Equal(t, "git@github.com:foo/other.git//Taskfile.yml?ref=dev", entrypoint)
33}
34
35func TestGitNode_sshWithDir(t *testing.T) {
36 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveEntrypointMethod · 0.95
NewGitNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…