(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestNoOrgId(t *testing.T) { |
| 40 | mockClientFn := func(ctx context.Context, _ *httpgrpc.HTTPRequest, _ ...grpc.CallOption) (*httpgrpc.HTTPResponse, error) { |
| 41 | return nil, nil |
| 42 | } |
| 43 | frontendClient := NewFrontendClient(mockHTTPGRPCClient(mockClientFn), time.Second*5, "/prometheus", "json") |
| 44 | _, err := frontendClient.InstantQuery(context.Background(), "query", time.Now()) |
| 45 | require.Equal(t, user.ErrNoOrgID, err) |
| 46 | } |
| 47 | |
| 48 | func TestInstantQueryJsonCodec(t *testing.T) { |
| 49 | tests := []struct { |
nothing calls this directly
no test coverage detected