MCPcopy
hub / github.com/grpc/grpc-go / TestConnectionError_Unwrap

Function TestConnectionError_Unwrap

internal/transport/transport_test.go:3051–3056  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3049}
3050
3051func TestConnectionError_Unwrap(t *testing.T) {
3052 err := connectionErrorf(false, os.ErrNotExist, "unwrap me")
3053 if !errors.Is(err, os.ErrNotExist) {
3054 t.Error("ConnectionError does not unwrap")
3055 }
3056}
3057
3058// Test that in the event of a graceful client transport shutdown, i.e.,
3059// clientTransport.Close(), client sends a goaway to the server with the correct

Callers

nothing calls this directly

Calls 3

connectionErrorfFunction · 0.85
IsMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected