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

Function TestRepositoryLocalWikiPath

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

Source from the content-addressed store, hash-verified

141}
142
143func TestRepositoryLocalWikiPath(t *testing.T) {
144 if runtime.GOOS == "windows" {
145 t.Skip("Skipping testing on Windows")
146 return
147 }
148
149 conf.SetMockServer(
150 t,
151 conf.ServerOpts{
152 AppDataPath: "data",
153 },
154 )
155
156 got := RepositoryLocalWikiPath(1)
157 want := "data/tmp/local-wiki/1"
158 assert.Equal(t, want, got)
159}

Callers

nothing calls this directly

Calls 2

SetMockServerFunction · 0.92
RepositoryLocalWikiPathFunction · 0.85

Tested by

no test coverage detected