MCPcopy
hub / github.com/jackc/pgx / expectMessage

Function expectMessage

internal/pgmock/pgmock.go:87–93  ·  view source on GitHub ↗
(want pgproto3.FrontendMessage, any bool)

Source from the content-addressed store, hash-verified

85}
86
87func expectMessage(want pgproto3.FrontendMessage, any bool) Step {
88 if want, ok := want.(*pgproto3.StartupMessage); ok {
89 return &expectStartupMessageStep{want: want, any: any}
90 }
91
92 return &expectMessageStep{want: want, any: any}
93}
94
95type sendMessageStep struct {
96 msg pgproto3.BackendMessage

Callers 2

ExpectMessageFunction · 0.85
ExpectAnyMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected