(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestUserPath(t *testing.T) { |
| 92 | if runtime.GOOS == "windows" { |
| 93 | t.Skip("Skipping testing on Windows") |
| 94 | return |
| 95 | } |
| 96 | |
| 97 | conf.SetMockRepository(t, |
| 98 | conf.RepositoryOpts{ |
| 99 | Root: "/home/git/gogs-repositories", |
| 100 | }, |
| 101 | ) |
| 102 | |
| 103 | got := UserPath("alice") |
| 104 | want := "/home/git/gogs-repositories/alice" |
| 105 | assert.Equal(t, want, got) |
| 106 | } |
| 107 | |
| 108 | func TestRepositoryPath(t *testing.T) { |
| 109 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected