This reverts commit 2adb7b54b75da2c74e9342ed115957fe0b07e0b4. · stretchr/testify@e2b269e (original) (raw)
`@@ -7,7 +7,6 @@ package require
`
7
7
``
8
8
`import (
`
9
9
` assert "github.com/stretchr/testify/assert"
`
10
``
`-
"io"
`
11
10
` http "net/http"
`
12
11
` url "net/url"
`
13
12
` time "time"
`
`@@ -489,11 +488,11 @@ func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...in
`
489
488
`// assert.HTTPBodyContains(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
`
490
489
`//
`
491
490
`// Returns whether the assertion was successful (true) or not (false).
`
492
``
`-
func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, body io.Reader, str interface{}, msgAndArgs ...interface{}) {
`
``
491
`+
func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
`
493
492
`if h, ok := t.(tHelper); ok {
`
494
493
`h.Helper()
`
495
494
` }
`
496
``
`-
if assert.HTTPBodyContains(t, handler, method, url, values, body, str, msgAndArgs...) {
`
``
495
`+
if assert.HTTPBodyContains(t, handler, method, url, values, str, msgAndArgs...) {
`
497
496
`return
`
498
497
` }
`
499
498
`t.FailNow()
`
`@@ -505,11 +504,11 @@ func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url s
`
505
504
`// assert.HTTPBodyContainsf(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted")
`
506
505
`//
`
507
506
`// Returns whether the assertion was successful (true) or not (false).
`
508
``
`-
func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, body io.Reader, str interface{}, msg string, args ...interface{}) {
`
``
507
`+
func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
`
509
508
`if h, ok := t.(tHelper); ok {
`
510
509
`h.Helper()
`
511
510
` }
`
512
``
`-
if assert.HTTPBodyContainsf(t, handler, method, url, values, body, str, msg, args...) {
`
``
511
`+
if assert.HTTPBodyContainsf(t, handler, method, url, values, str, msg, args...) {
`
513
512
`return
`
514
513
` }
`
515
514
`t.FailNow()
`
`@@ -521,11 +520,11 @@ func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url
`
521
520
`// assert.HTTPBodyNotContains(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
`
522
521
`//
`
523
522
`// Returns whether the assertion was successful (true) or not (false).
`
524
``
`-
func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, body io.Reader, str interface{}, msgAndArgs ...interface{}) {
`
``
523
`+
func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
`
525
524
`if h, ok := t.(tHelper); ok {
`
526
525
`h.Helper()
`
527
526
` }
`
528
``
`-
if assert.HTTPBodyNotContains(t, handler, method, url, values, body, str, msgAndArgs...) {
`
``
527
`+
if assert.HTTPBodyNotContains(t, handler, method, url, values, str, msgAndArgs...) {
`
529
528
`return
`
530
529
` }
`
531
530
`t.FailNow()
`
`@@ -537,11 +536,11 @@ func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, ur
`
537
536
`// assert.HTTPBodyNotContainsf(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted")
`
538
537
`//
`
539
538
`// Returns whether the assertion was successful (true) or not (false).
`
540
``
`-
func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, body io.Reader, str interface{}, msg string, args ...interface{}) {
`
``
539
`+
func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
`
541
540
`if h, ok := t.(tHelper); ok {
`
542
541
`h.Helper()
`
543
542
` }
`
544
``
`-
if assert.HTTPBodyNotContainsf(t, handler, method, url, values, body, str, msg, args...) {
`
``
543
`+
if assert.HTTPBodyNotContainsf(t, handler, method, url, values, str, msg, args...) {
`
545
544
`return
`
546
545
` }
`
547
546
`t.FailNow()
`