(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestGitNode_ssh(t *testing.T) { |
| 11 | t.Parallel() |
| 12 | |
| 13 | node, err := NewGitNode("git@github.com:foo/bar.git//Taskfile.yml?ref=main", "", false) |
| 14 | assert.NoError(t, err) |
| 15 | assert.Equal(t, "main", node.ref) |
| 16 | assert.Equal(t, "Taskfile.yml", node.path) |
| 17 | assert.Equal(t, "ssh://git@github.com/foo/bar.git//Taskfile.yml?ref=main", node.Location()) |
| 18 | assert.Equal(t, "ssh://git@github.com/foo/bar.git", node.url.String()) |
| 19 | entrypoint, err := node.ResolveEntrypoint("common.yml") |
| 20 | assert.NoError(t, err) |
| 21 | assert.Equal(t, "ssh://git@github.com/foo/bar.git//common.yml?ref=main", entrypoint) |
| 22 | } |
| 23 | |
| 24 | func TestGitNode_sshWithAltRepo(t *testing.T) { |
| 25 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…