(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestGitNode_httpsWithDir(t *testing.T) { |
| 64 | t.Parallel() |
| 65 | |
| 66 | node, err := NewGitNode("https://github.com/foo/bar.git//directory/Taskfile.yml?ref=main", "", false) |
| 67 | assert.NoError(t, err) |
| 68 | assert.Equal(t, "main", node.ref) |
| 69 | assert.Equal(t, "directory/Taskfile.yml", node.path) |
| 70 | assert.Equal(t, "https://github.com/foo/bar.git//directory/Taskfile.yml?ref=main", node.Location()) |
| 71 | assert.Equal(t, "https://github.com/foo/bar.git", node.url.String()) |
| 72 | entrypoint, err := node.ResolveEntrypoint("common.yml") |
| 73 | assert.NoError(t, err) |
| 74 | assert.Equal(t, "https://github.com/foo/bar.git//directory/common.yml?ref=main", entrypoint) |
| 75 | } |
| 76 | |
| 77 | func TestGitNode_CacheKey(t *testing.T) { |
| 78 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…