(t *testing.T)
| 742 | } |
| 743 | |
| 744 | func TestValidateRemoteURL(t *testing.T) { |
| 745 | assert.Nil(t, ValidateRemoteURL("https://github.com/git-lfs/git-lfs")) |
| 746 | assert.Nil(t, ValidateRemoteURL("http://github.com/git-lfs/git-lfs")) |
| 747 | assert.Nil(t, ValidateRemoteURL("git://github.com/git-lfs/git-lfs")) |
| 748 | assert.Nil(t, ValidateRemoteURL("ssh://git@github.com/git-lfs/git-lfs")) |
| 749 | assert.Nil(t, ValidateRemoteURL("ssh://git@github.com:22/git-lfs/git-lfs")) |
| 750 | assert.Nil(t, ValidateRemoteURL("git@github.com:git-lfs/git-lfs")) |
| 751 | assert.Nil(t, ValidateRemoteURL("git@server:/absolute/path.git")) |
| 752 | assert.NotNil(t, ValidateRemoteURL("ftp://git@github.com/git-lfs/git-lfs")) |
| 753 | } |
| 754 | |
| 755 | func TestRefTypeKnownPrefixes(t *testing.T) { |
| 756 | for typ, expected := range map[RefType]struct { |
nothing calls this directly
no test coverage detected