MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestPoolStats_HasASTPool

Function TestPoolStats_HasASTPool

pkg/metrics/pool_stats_test.go:44–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestPoolStats_HasASTPool(t *testing.T) {
45 stats := metrics.GetPoolStats()
46 if _, ok := stats["ast"]; !ok {
47 t.Error("expected 'ast' key in pool stats")
48 }
49}
50
51func TestPoolStats_RecordGet(t *testing.T) {
52 metrics.ResetPoolStats()

Callers

nothing calls this directly

Calls 2

GetPoolStatsFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected