(t *testing.T)
| 366 | } |
| 367 | |
| 368 | func (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 | |
| 381 | func (s) TestStatus_ErrorDetails_Fail(t *testing.T) { |
| 382 | tests := []struct { |
nothing calls this directly
no test coverage detected