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

Function TestPrepareAPIURL_Empty

cmd/crowdsec-cli/clilapi/status_test.go:36–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestPrepareAPIURL_Empty(t *testing.T) {
37 _, err := prepareAPIURL(nil, "")
38 require.Error(t, err)
39}
40
41func TestPrepareAPIURL_Empty_ConfigOverride(t *testing.T) {
42 url, err := prepareAPIURL(&csconfig.LocalApiClientCfg{

Callers

nothing calls this directly

Calls 2

prepareAPIURLFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…