(t *testing.T, s string)
| 43 | } |
| 44 | |
| 45 | func MustNewURL(t *testing.T, s string) *url.URL { |
| 46 | t.Helper() |
| 47 | u, err := url.Parse(s) |
| 48 | if err != nil { |
| 49 | t.Fatalf("parse %v error: %v", s, err) |
| 50 | } |
| 51 | return u |
| 52 | } |
| 53 | |
| 54 | // FatalStack helps to fatal the test and print out the stacks of all running goroutines. |
| 55 | func FatalStack(t *testing.T, s string) { |
no test coverage detected
searching dependent graphs…