@@ -94,7 +94,7 @@ func EqualErrorf(t TestingT, theError error, errString string, msg string, args
94
94
// EqualValuesf asserts that two objects are equal or convertable to the same types
95
95
// and equal.
96
96
//
97
- // assert.EqualValuesf(t, uint32(123, "error message %s", "formatted"), int32(123) )
97
+ // assert.EqualValuesf(t, uint32(123), int32(123), "error message %s", "formatted")
98
98
func EqualValuesf (t TestingT , expected interface {}, actual interface {}, msg string , args ... interface {}) bool {
99
99
if h , ok := t .(tHelper ); ok {
100
100
h .Helper ()
@@ -128,7 +128,7 @@ func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick
128
128
129
129
// Exactlyf asserts that two objects are equal in value and type.
130
130
//
131
- // assert.Exactlyf(t, int32(123, "error message %s", "formatted"), int64(123) )
131
+ // assert.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted")
132
132
func Exactlyf (t TestingT , expected interface {}, actual interface {}, msg string , args ... interface {}) bool {
133
133
if h , ok := t .(tHelper ); ok {
134
134
h .Helper ()
@@ -174,7 +174,7 @@ func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool
174
174
// Greaterf asserts that the first element is greater than the second
175
175
//
176
176
// assert.Greaterf(t, 2, 1, "error message %s", "formatted")
177
- // assert.Greaterf(t, float64(2, "error message %s", "formatted"), float64(1) )
177
+ // assert.Greaterf(t, float64(2), float64(1), "error message %s", "formatted")
178
178
// assert.Greaterf(t, "b", "a", "error message %s", "formatted")
179
179
func Greaterf (t TestingT , e1 interface {}, e2 interface {}, msg string , args ... interface {}) bool {
180
180
if h , ok := t .(tHelper ); ok {
@@ -226,7 +226,7 @@ func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, u
226
226
//
227
227
// assert.HTTPErrorf(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}
228
228
//
229
- // Returns whether the assertion was successful (true, "error message %s", "formatted" ) or not (false).
229
+ // Returns whether the assertion was successful (true) or not (false).
230
230
func HTTPErrorf (t TestingT , handler http.HandlerFunc , method string , url string , values url.Values , msg string , args ... interface {}) bool {
231
231
if h , ok := t .(tHelper ); ok {
232
232
h .Helper ()
@@ -238,7 +238,7 @@ func HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string,
238
238
//
239
239
// assert.HTTPRedirectf(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}
240
240
//
241
- // Returns whether the assertion was successful (true, "error message %s", "formatted" ) or not (false).
241
+ // Returns whether the assertion was successful (true) or not (false).
242
242
func HTTPRedirectf (t TestingT , handler http.HandlerFunc , method string , url string , values url.Values , msg string , args ... interface {}) bool {
243
243
if h , ok := t .(tHelper ); ok {
244
244
h .Helper ()
@@ -272,7 +272,7 @@ func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url strin
272
272
273
273
// Implementsf asserts that an object is implemented by the specified interface.
274
274
//
275
- // assert.Implementsf(t, (*MyInterface, "error message %s", "formatted")(nil), new(MyObject) )
275
+ // assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")
276
276
func Implementsf (t TestingT , interfaceObject interface {}, object interface {}, msg string , args ... interface {}) bool {
277
277
if h , ok := t .(tHelper ); ok {
278
278
h .Helper ()
@@ -354,7 +354,7 @@ func Lenf(t TestingT, object interface{}, length int, msg string, args ...interf
354
354
// Lessf asserts that the first element is less than the second
355
355
//
356
356
// assert.Lessf(t, 1, 2, "error message %s", "formatted")
357
- // assert.Lessf(t, float64(1, "error message %s", "formatted"), float64(2) )
357
+ // assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted")
358
358
// assert.Lessf(t, "a", "b", "error message %s", "formatted")
359
359
func Lessf (t TestingT , e1 interface {}, e2 interface {}, msg string , args ... interface {}) bool {
360
360
if h , ok := t .(tHelper ); ok {
@@ -489,7 +489,7 @@ func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bo
489
489
490
490
// NotRegexpf asserts that a specified regexp does not match a string.
491
491
//
492
- // assert.NotRegexpf(t, regexp.MustCompile("starts", "error message %s", "formatted"), "it's starting ")
492
+ // assert.NotRegexpf(t, regexp.MustCompile("starts") , "it's starting", " error message %s", "formatted")
493
493
// assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted")
494
494
func NotRegexpf (t TestingT , rx interface {}, str interface {}, msg string , args ... interface {}) bool {
495
495
if h , ok := t .(tHelper ); ok {
@@ -565,7 +565,7 @@ func PanicsWithValuef(t TestingT, expected interface{}, f PanicTestFunc, msg str
565
565
566
566
// Regexpf asserts that a specified regexp matches a string.
567
567
//
568
- // assert.Regexpf(t, regexp.MustCompile("start", "error message %s", "formatted"), "it's starting ")
568
+ // assert.Regexpf(t, regexp.MustCompile("start") , "it's starting", " error message %s", "formatted")
569
569
// assert.Regexpf(t, "start...$", "it's not starting", "error message %s", "formatted")
570
570
func Regexpf (t TestingT , rx interface {}, str interface {}, msg string , args ... interface {}) bool {
571
571
if h , ok := t .(tHelper ); ok {
0 commit comments