MCPcopy
hub / github.com/pocketbase/pocketbase / TestNewBatchHandlerPanic

Function TestNewBatchHandlerPanic

tools/logger/batch_handler_test.go:14–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestNewBatchHandlerPanic(t *testing.T) {
15 defer func() {
16 if r := recover(); r == nil {
17 t.Errorf("Expected to panic.")
18 }
19 }()
20
21 NewBatchHandler(BatchOptions{})
22}
23
24func TestNewBatchHandlerDefaults(t *testing.T) {
25 h := NewBatchHandler(BatchOptions{

Callers

nothing calls this directly

Calls 1

NewBatchHandlerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…