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

Function newFakeLicenseAPI

enterprise/cli/licenses_test.go:250–261  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

248}
249
250func newFakeLicenseAPI(t *testing.T) http.Handler {
251 r := chi.NewRouter()
252 a := &fakeLicenseAPI{t: t, r: r}
253 r.NotFound(a.notFound)
254 r.Post("/api/v2/licenses", a.postLicense)
255 r.Get("/api/v2/licenses", a.licenses)
256 r.Get("/api/v2/buildinfo", a.noop)
257 r.Get("/api/v2/users/me", a.noop)
258 r.Delete("/api/v2/licenses/{id}", a.deleteLicense)
259 r.Get("/api/v2/entitlements", a.entitlements)
260 return r
261}
262
263type fakeLicenseAPI struct {
264 t *testing.T

Callers 1

Calls 2

GetMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected