(t *testing.T)
| 587 | } |
| 588 | |
| 589 | func TestGroupUrls(t *testing.T) { |
| 590 | urls := []string{"registry.io/repository/image:tag", "git+https://git.io/organization/repository", "rhcr.io/repository/image:tag", "git+ssh://got.io/organization/repository"} |
| 591 | |
| 592 | imgs, gits := groupUrls(urls) |
| 593 | |
| 594 | assert.Equal(t, imgs, []string{"registry.io/repository/image:tag", "rhcr.io/repository/image:tag"}) |
| 595 | assert.Equal(t, gits, []string{"git+https://git.io/organization/repository", "git+ssh://got.io/organization/repository"}) |
| 596 | } |
| 597 | |
| 598 | func TestTrackGitReferences(t *testing.T) { |
| 599 | tracker := &Tracker{ |
nothing calls this directly
no test coverage detected