(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestGitNode_sshWithDir(t *testing.T) { |
| 36 | t.Parallel() |
| 37 | |
| 38 | node, err := NewGitNode("git@github.com:foo/bar.git//directory/Taskfile.yml?ref=main", "", false) |
| 39 | assert.NoError(t, err) |
| 40 | assert.Equal(t, "main", node.ref) |
| 41 | assert.Equal(t, "directory/Taskfile.yml", node.path) |
| 42 | assert.Equal(t, "ssh://git@github.com/foo/bar.git//directory/Taskfile.yml?ref=main", node.Location()) |
| 43 | assert.Equal(t, "ssh://git@github.com/foo/bar.git", node.url.String()) |
| 44 | entrypoint, err := node.ResolveEntrypoint("common.yml") |
| 45 | assert.NoError(t, err) |
| 46 | assert.Equal(t, "ssh://git@github.com/foo/bar.git//directory/common.yml?ref=main", entrypoint) |
| 47 | } |
| 48 | |
| 49 | func TestGitNode_https(t *testing.T) { |
| 50 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…