@@ -25,12 +25,12 @@ func Match(t *testing.T, regex, expected string) {
2525func AssertURL (t * testing.T , expect , actual string , msgAndArgs ... interface {}) bool {
2626 expectURL , err := url .Parse (expect )
2727 if err != nil {
28- t .Errorf (errMsg ("unable to parse expected URL" , err , msgAndArgs ))
28+ t .Error (errMsg ("unable to parse expected URL" , err , msgAndArgs ))
2929 return false
3030 }
3131 actualURL , err := url .Parse (actual )
3232 if err != nil {
33- t .Errorf (errMsg ("unable to parse actual URL" , err , msgAndArgs ))
33+ t .Error (errMsg ("unable to parse actual URL" , err , msgAndArgs ))
3434 return false
3535 }
3636
@@ -47,12 +47,12 @@ var queryMapKey = regexp.MustCompile("(.*?)\\.[0-9]+\\.key")
4747func AssertQuery (t * testing.T , expect , actual string , msgAndArgs ... interface {}) bool {
4848 expectQ , err := url .ParseQuery (expect )
4949 if err != nil {
50- t .Errorf (errMsg ("unable to parse expected Query" , err , msgAndArgs ))
50+ t .Error (errMsg ("unable to parse expected Query" , err , msgAndArgs ))
5151 return false
5252 }
5353 actualQ , err := url .ParseQuery (actual )
5454 if err != nil {
55- t .Errorf (errMsg ("unable to parse actual Query" , err , msgAndArgs ))
55+ t .Error (errMsg ("unable to parse actual Query" , err , msgAndArgs ))
5656 return false
5757 }
5858
@@ -99,13 +99,13 @@ func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{})
9999func AssertJSON (t * testing.T , expect , actual string , msgAndArgs ... interface {}) bool {
100100 expectVal := map [string ]interface {}{}
101101 if err := json .Unmarshal ([]byte (expect ), & expectVal ); err != nil {
102- t .Errorf (errMsg ("unable to parse expected JSON" , err , msgAndArgs ... ))
102+ t .Error (errMsg ("unable to parse expected JSON" , err , msgAndArgs ... ))
103103 return false
104104 }
105105
106106 actualVal := map [string ]interface {}{}
107107 if err := json .Unmarshal ([]byte (actual ), & actualVal ); err != nil {
108- t .Errorf (errMsg ("unable to parse actual JSON" , err , msgAndArgs ... ))
108+ t .Error (errMsg ("unable to parse actual JSON" , err , msgAndArgs ... ))
109109 return false
110110 }
111111
0 commit comments