MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestCursorCloseNonexistent

Function TestCursorCloseNonexistent

server/conn_test.go:3622–3635  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3620
3621 for _, tt := range tests {
3622 t.Run(tt.name, func(t *testing.T) {
3623 name, param, ok := matchPgCursorsQuery(tt.query)
3624 if ok != tt.wantOK {
3625 t.Errorf("matchPgCursorsQuery(%q) ok = %v, want %v", tt.query, ok, tt.wantOK)
3626 }
3627 if name != tt.wantName {
3628 t.Errorf("matchPgCursorsQuery(%q) name = %q, want %q", tt.query, name, tt.wantName)
3629 }
3630 if param != tt.wantParam {
3631 t.Errorf("matchPgCursorsQuery(%q) parameterized = %v, want %v", tt.query, param, tt.wantParam)
3632 }
3633 })
3634 }
3635}
3636
3637func TestCursorCloseAllCursors(t *testing.T) {
3638 c := &clientConn{

Callers

nothing calls this directly

Calls 1

closeCursorMethod · 0.95

Tested by

no test coverage detected