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

Method TestStatus_WithDetails_Fail

status/status_test.go:368–379  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

366}
367
368func (s) TestStatus_WithDetails_Fail(t *testing.T) {
369 tests := []*Status{
370 nil,
371 FromProto(nil),
372 New(codes.OK, ""),
373 }
374 for _, s := range tests {
375 if s, err := s.WithDetails(); err == nil || s != nil {
376 t.Fatalf("(%v).WithDetails(%+v) = %v, %v; want nil, non-nil", str(s), []proto.Message{}, s, err)
377 }
378 }
379}
380
381func (s) TestStatus_ErrorDetails_Fail(t *testing.T) {
382 tests := []struct {

Callers

nothing calls this directly

Calls 5

WithDetailsMethod · 0.80
FromProtoFunction · 0.70
NewFunction · 0.70
strFunction · 0.70
FatalfMethod · 0.65

Tested by

no test coverage detected