(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func 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 | |
| 63 | func TestGitNode_httpsWithDir(t *testing.T) { |
| 64 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…