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

Function TestPrepareAPIURL_Http

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

Source from the content-addressed store, hash-verified

16}
17
18func TestPrepareAPIURL_Http(t *testing.T) {
19 url, err := prepareAPIURL(nil, "http://localhost:81")
20 require.NoError(t, err)
21 assert.Equal(t, "http://localhost:81/", url.String())
22}
23
24func TestPrepareAPIURL_Https(t *testing.T) {
25 url, err := prepareAPIURL(nil, "https://localhost:81")

Callers

nothing calls this directly

Calls 2

prepareAPIURLFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…