MCPcopy Index your code
hub / github.com/coder/coder / TestEndpointsDocumented

Function TestEndpointsDocumented

coderd/coderdtest/swagger_test.go:16–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestEndpointsDocumented(t *testing.T) {
17 t.Parallel()
18
19 swaggerComments, err := coderdtest.ParseSwaggerComments("..", "../workspaceconnwatcher")
20 require.NoError(t, err, "can't parse swagger comments")
21 require.NotEmpty(t, swaggerComments, "swagger comments must be present")
22
23 _, _, api := coderdtest.NewWithAPI(t, nil)
24 coderdtest.VerifySwaggerDefinitions(t, api.APIHandler, swaggerComments, coderdtest.WithSwaggerRoutePrefix("/api/v2"))
25}
26
27func TestSDKFieldsFormatted(t *testing.T) {
28 t.Parallel()

Callers

nothing calls this directly

Calls 5

ParseSwaggerCommentsFunction · 0.92
NewWithAPIFunction · 0.92
VerifySwaggerDefinitionsFunction · 0.92
WithSwaggerRoutePrefixFunction · 0.92
NotEmptyMethod · 0.80

Tested by

no test coverage detected