MCPcopy
hub / github.com/crowdsecurity/crowdsec / assertTotalAlertCount

Function assertTotalAlertCount

pkg/apiserver/apic_test.go:116–120  ·  view source on GitHub ↗
(t *testing.T, dbClient *database.Client, count int)

Source from the content-addressed store, hash-verified

114}
115
116func assertTotalAlertCount(t *testing.T, dbClient *database.Client, count int) {
117 ctx := t.Context()
118 d := dbClient.Ent.Alert.Query().AllX(ctx)
119 assert.Len(t, d, count)
120}
121
122func TestAPICCAPIPullIsOld(t *testing.T) {
123 ctx := t.Context()

Callers 2

TestAPICWhitelistsFunction · 0.85
TestAPICPullTopFunction · 0.85

Calls 3

AllXMethod · 0.45
QueryMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…