(t *testing.T, ctx context.Context)
| 17 | ) |
| 18 | |
| 19 | func getDBClient(t *testing.T, ctx context.Context) *Client { |
| 20 | t.Helper() |
| 21 | |
| 22 | dbClient, err := NewClient(ctx, &csconfig.DatabaseCfg{ |
| 23 | Type: "sqlite", |
| 24 | DbName: "crowdsec", |
| 25 | DbPath: ":memory:", |
| 26 | }, nil) |
| 27 | require.NoError(t, err) |
| 28 | |
| 29 | return dbClient |
| 30 | } |
| 31 | |
| 32 | func TestCheckAllowlist(t *testing.T) { |
| 33 | ctx := t.Context() |
no test coverage detected
searching dependent graphs…