smithy

ref: 3b2b07510bc45fbec6b7b20a0a7e27be6b62eefc

pkg/go-git-http/auth/auth_test.go


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
package auth

import (
	"testing"
)

func TestRepoName(t *testing.T) {
	if x := repoName("/yapp.ss.git/HEAD"); x != "yapp.ss.git" {
		t.Errorf("Should have been 'yapp.js.git' is '%s'", x)
	}

	if x := repoName("aarono/gogo-proxy/HEAD"); x != "aarono/gogo-proxy" {
		t.Errorf("Should have been 'aarono/gogo-proxy' is '%s'", x)
	}
}