mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
5baaf2747d
Closes https://github.com/coder/internal/issues/900 - Implements `coder exp task status` - Adds `testutil.MustURL` helper
15 lines
175 B
Go
15 lines
175 B
Go
package testutil
|
|
|
|
import (
|
|
"net/url"
|
|
"testing"
|
|
)
|
|
|
|
func MustURL(t testing.TB, raw string) *url.URL {
|
|
u, err := url.Parse(raw)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return u
|
|
}
|