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

Function errWithDetails

status/status_ext_test.go:56–63  ·  view source on GitHub ↗
(t *testing.T, s *status.Status, details ...protoadapt.MessageV1)

Source from the content-addressed store, hash-verified

54}
55
56func errWithDetails(t *testing.T, s *status.Status, details ...protoadapt.MessageV1) error {
57 t.Helper()
58 res, err := s.WithDetails(details...)
59 if err != nil {
60 t.Fatalf("(%v).WithDetails(%v) = %v, %v; want _, <nil>", s, details, res, err)
61 }
62 return res.Err()
63}
64
65func (s) TestErrorIs(t *testing.T) {
66 // Test errors.

Callers 1

TestErrorIsMethod · 0.85

Calls 3

WithDetailsMethod · 0.80
ErrMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected