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