(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func 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 | } |
nothing calls this directly
no test coverage detected