github.com/letsencrypt/boulder@v0.20251208.0/must/must_test.go (about) 1 package must 2 3 import ( 4 "net/url" 5 "testing" 6 ) 7 8 func TestDo(t *testing.T) { 9 url := Do(url.Parse("http://example.com")) 10 if url.Host != "example.com" { 11 t.Errorf("expected host to be example.com, got %s", url.Host) 12 } 13 }