MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / mustGetReader

Function mustGetReader

internal/codegenerator/parse_req_test.go:57–63  ·  view source on GitHub ↗
(pb proto.Message)

Source from the content-addressed store, hash-verified

55}
56
57func mustGetReader(pb proto.Message) io.Reader {
58 b, err := proto.Marshal(pb)
59 if err != nil {
60 panic(err)
61 }
62 return bytes.NewBuffer(b)
63}
64
65type invalidReader struct {
66}

Callers 1

parse_req_test.goFile · 0.85

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected