MCPcopy Create free account
hub / github.com/prometheus/common / isEmptyNonNilURL

Function isEmptyNonNilURL

config/http_config_test.go:2241–2243  ·  view source on GitHub ↗

checks if u equals to &url.URL{}.

(u *url.URL)

Source from the content-addressed store, hash-verified

2239
2240// checks if u equals to &url.URL{}.
2241func isEmptyNonNilURL(u *url.URL) bool {
2242 return u != nil && *u == url.URL{}
2243}
2244
2245func TestUnmarshalURL(t *testing.T) {
2246 b := []byte(`"http://example.com/a b"`)

Callers 2

TestUnmarshalNullURLFunction · 0.85
TestUnmarshalEmptyURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected