(t *testing.T)
| 202 | } |
| 203 | |
| 204 | func (s) TestDialContextCancel(t *testing.T) { |
| 205 | ctx, cancel := context.WithCancel(context.Background()) |
| 206 | cancel() |
| 207 | if _, err := DialContext(ctx, "Non-Existent.Server:80", WithBlock(), WithTransportCredentials(insecure.NewCredentials())); err != context.Canceled { |
| 208 | t.Fatalf("DialContext(%v, _) = _, %v, want _, %v", ctx, err, context.Canceled) |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | type failFastError struct{} |
| 213 |
nothing calls this directly
no test coverage detected