Skip to content

Commit 10e7dc0

Browse files
committed
Fix tests
1 parent ebd283b commit 10e7dc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin/plugin_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import (
1515
"google.golang.org/protobuf/types/known/structpb"
1616
)
1717

18+
func testQueryRequest() (string, string) {
19+
query := "SELECT * FROM users"
20+
queryMsg := pgproto3.Query{String: query}
21+
// Encode the data to base64.
22+
return query, base64.StdEncoding.EncodeToString(queryMsg.Encode(nil))
23+
}
24+
1825
func testStartupRequest() string {
1926
startupMsg := pgproto3.StartupMessage{
2027
ProtocolVersion: 196608,

0 commit comments

Comments
 (0)