MCPcopy
hub / github.com/connectrpc/connect-go / WrapStreamingHandler

Method WrapStreamingHandler

client_ext_test.go:841–848  ·  view source on GitHub ↗
(next connect.StreamingHandlerFunc)

Source from the content-addressed store, hash-verified

839}
840
841func (a *assertPeerInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc {
842 return func(ctx context.Context, conn connect.StreamingHandlerConn) error {
843 assert.NotZero(a.tb, conn.Peer().Addr)
844 assert.NotZero(a.tb, conn.Peer().Protocol)
845 assert.NotZero(a.tb, conn.Spec())
846 return next(ctx, conn)
847 }
848}
849
850type assertSchemaInterceptor struct {
851 tb testing.TB

Callers

nothing calls this directly

Calls 3

NotZeroFunction · 0.92
PeerMethod · 0.65
SpecMethod · 0.65

Tested by

no test coverage detected