Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbacf76

Browse files
committed
WIP
1 parent c2977cf commit cbacf76

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

coderd/coderdtest/swagger_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package coderdtest
2+
3+
import (
4+
"net/http"
5+
"testing"
6+
7+
"github.com/go-chi/chi/v5"
8+
"github.com/stretchr/testify/require"
9+
)
10+
11+
func TestAllEndpointsDocumented(t *testing.T) {
12+
_, _, api := NewWithAPI(t, nil)
13+
14+
err := chi.Walk(api.APIHandler, func(method, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error {
15+
return nil
16+
})
17+
require.NoError(t, err)
18+
}

0 commit comments

Comments
 (0)