MCPcopy Create free account
hub / github.com/mroth/bump / Test_githubRepoDetect

Function Test_githubRepoDetect

git_test.go:51–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func Test_githubRepoDetect(t *testing.T) {
52 owner, repo, err := githubRepoDetect(".")
53 if err != nil {
54 t.Fatal(err)
55 }
56 expect := "mroth/bump"
57 actual := owner + "/" + repo
58 if expect != actual {
59 t.Errorf("want %v got %v", expect, actual)
60 }
61}
62
63func Benchmark_detectRemoteURL_GoGit(b *testing.B) {
64 for b.Loop() {

Callers

nothing calls this directly

Calls 1

githubRepoDetectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…