MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / TestValidateRemoteURL

Function TestValidateRemoteURL

git/git_test.go:744–753  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

742}
743
744func 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
755func TestRefTypeKnownPrefixes(t *testing.T) {
756 for typ, expected := range map[RefType]struct {

Callers

nothing calls this directly

Calls 1

ValidateRemoteURLFunction · 0.85

Tested by

no test coverage detected