MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / TestPrepareAPIURL_Https

Function TestPrepareAPIURL_Https

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

Source from the content-addressed store, hash-verified

22}
23
24func TestPrepareAPIURL_Https(t *testing.T) {
25 url, err := prepareAPIURL(nil, "https://localhost:81")
26 require.NoError(t, err)
27 assert.Equal(t, "https://localhost:81/", url.String())
28}
29
30func TestPrepareAPIURL_UnixSocket(t *testing.T) {
31 url, err := prepareAPIURL(nil, "/path/socket")

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…