Passed
Push — master ( 4fb92b...bd2e0b )
by Stefano
02:19
created

test.MustParseURL   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
package test
2
3
import (
4
	"net/url"
5
	"testing"
6
)
7
8
func MustParseURL(t *testing.T, rawurl string) *url.URL {
0 ignored issues
show
introduced by
exported function MustParseURL should have comment or be unexported
Loading history...
9
	u, err := url.Parse(rawurl)
10
	if err != nil {
11
		t.Fatalf("failed to parse url: %s", rawurl)
12
	}
13
14
	return u
15
}
16