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

Function waitForCalls

server/server_test.go:94–104  ·  view source on GitHub ↗
(t *testing.T, timeout time.Duration, fn func() bool)

Source from the content-addressed store, hash-verified

92type mockRefreshExecer struct {
93 mu sync.Mutex
94 secretCalls int
95 rollbackCalls int
96 secretErrFn func(callNum int) error
97}
98
99type mockDuckLakeExecer struct {
100 mu sync.Mutex
101 errs []error
102 queries []string
103 execCalls int
104}
105
106func (m *mockDuckLakeExecer) Exec(query string, _ ...any) (sql.Result, error) {
107 m.mu.Lock()

Calls 3

fnFunction · 0.85
AddMethod · 0.80
NowMethod · 0.80

Tested by

no test coverage detected