(t *testing.T, handler http.Handler)
| 680 | } |
| 681 | |
| 682 | func 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 | |
| 689 | func tallymanHandler(t *testing.T, expectDeploymentID string, expectLicenseJWT string, handler func(req usagetypes.TallymanV1IngestRequest) any) http.Handler { |
| 690 | t.Helper() |
no test coverage detected