MCPcopy Create free account
hub / github.com/gogs/gogs / TestCompareCommitsPath

Function TestCompareCommitsPath

internal/repoutil/repoutil_test.go:85–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestCompareCommitsPath(t *testing.T) {
86 got := CompareCommitsPath("alice", "example", "old", "new")
87 want := "alice/example/compare/old...new"
88 assert.Equal(t, want, got)
89}
90
91func TestUserPath(t *testing.T) {
92 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 1

CompareCommitsPathFunction · 0.85

Tested by

no test coverage detected