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

Function fakeServer

enterprise/coderd/usage/publisher_test.go:682–687  ·  view source on GitHub ↗
(t *testing.T, handler http.Handler)

Source from the content-addressed store, hash-verified

680}
681
682func fakeServer(t *testing.T, handler http.Handler) string {
683 t.Helper()
684 server := httptest.NewServer(handler)
685 t.Cleanup(server.Close)
686 return server.URL
687}
688
689func tallymanHandler(t *testing.T, expectDeploymentID string, expectLicenseJWT string, handler func(req usagetypes.TallymanV1IngestRequest) any) http.Handler {
690 t.Helper()

Callers 6

TestIntegrationFunction · 0.85
TestPublisherClaimExpiryFunction · 0.85

Calls 2

HelperMethod · 0.65
CleanupMethod · 0.65

Tested by

no test coverage detected