Debian Codegraph @

require.go

raw symbols SCIP
1 /*
2 * CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
3 * THIS FILE MUST NOT BE EDITED BY HAND
4 */
5
6 package assertscip-go gomod github.com/tj/assert . `github.com/tj/assert`/
7
8 import (
9 httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/ "net/httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/"
10 urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/ "net/urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/"
11 timescip-go gomod github.com/golang/go/src go1.14 time/ "timescip-go gomod github.com/golang/go/src go1.14 time/"
12
13 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/ "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/"
14 )
15
16 // Condition uses a Comparison to assert a complex condition.
17 func Conditionscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Condition().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, comp assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Comparisonscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Comparison#, msgAndArgs ...interface{}) {
18 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Conditionscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Condition().(t, comp, msgAndArgs...) {
19 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
20 }
21 }
22
23 // Contains asserts that the specified string, list(array, slice...) or map contains the
24 // specified substring or element.
25 //
26 // assert.Contains(t, "Hello World", "World")
27 // assert.Contains(t, ["Hello", "World"], "World")
28 // assert.Contains(t, {"Hello": "World"}, "Hello")
29 func Containsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Contains().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, s interface{}, contains interface{}, msgAndArgs ...interface{}) {
30 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Containsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Contains().(t, s, contains, msgAndArgs...) {
31 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
32 }
33 }
34
35 // DirExists checks whether a directory exists in the given path. It also fails
36 // if the path is a file rather a directory or there is an error checking whether it exists.
37 func DirExistsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/DirExists().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, path string, msgAndArgs ...interface{}) {
38 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.DirExistsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/DirExists().(t, path, msgAndArgs...) {
39 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
40 }
41 }
42
43 // ElementsMatch asserts that the specified listA(array, slice...) is equal to specified
44 // listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
45 // the number of appearances of each of them in both lists should match.
46 //
47 // assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])
48 func ElementsMatchscip-go gomod github.com/tj/assert . `github.com/tj/assert`/ElementsMatch().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
49 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.ElementsMatchscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/ElementsMatch().(t, listA, listB, msgAndArgs...) {
50 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
51 }
52 }
53
54 // Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either
55 // a slice or a channel with len == 0.
56 //
57 // assert.Empty(t, obj)
58 func Emptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Empty().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, object interface{}, msgAndArgs ...interface{}) {
59 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Emptyscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Empty().(t, object, msgAndArgs...) {
60 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
61 }
62 }
63
64 // Equal asserts that two objects are equal.
65 //
66 // assert.Equal(t, 123, 123)
67 //
68 // Pointer variable equality is determined based on the equality of the
69 // referenced values (as opposed to the memory addresses). Function equality
70 // cannot be determined and will always fail.
71 func Equalscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Equal().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
72 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, expected, actual, msgAndArgs...) {
73 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
74 }
75 }
76
77 // EqualError asserts that a function returned an error (i.e. not `nil`)
78 // and that it is equal to the provided error.
79 //
80 // actualObj, err := SomeFunction()
81 // assert.EqualError(t, err, expectedErrorString)
82 func EqualErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/EqualError().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, theError error, errString string, msgAndArgs ...interface{}) {
83 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.EqualErrorscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/EqualError().(t, theError, errString, msgAndArgs...) {
84 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
85 }
86 }
87
88 // EqualValues asserts that two objects are equal or convertable to the same types
89 // and equal.
90 //
91 // assert.EqualValues(t, uint32(123), int32(123))
92 func EqualValuesscip-go gomod github.com/tj/assert . `github.com/tj/assert`/EqualValues().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
93 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.EqualValuesscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/EqualValues().(t, expected, actual, msgAndArgs...) {
94 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
95 }
96 }
97
98 // Error asserts that a function returned an error (i.e. not `nil`).
99 //
100 // actualObj, err := SomeFunction()
101 // if assert.Error(t, err) {
102 // assert.Equal(t, expectedError, err)
103 // }
104 func Errorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Error().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, err error, msgAndArgs ...interface{}) {
105 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Errorscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Error().(t, err, msgAndArgs...) {
106 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
107 }
108 }
109
110 // Eventually asserts that given condition will be met in waitFor time,
111 // periodically checking target function each tick.
112 //
113 // assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)
114 func Eventuallyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Eventually().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, condition func() bool, waitFor timescip-go gomod github.com/golang/go/src go1.14 time/.Durationscip-go gomod github.com/golang/go/src go1.14 time/Duration#, tick timescip-go gomod github.com/golang/go/src go1.14 time/.Durationscip-go gomod github.com/golang/go/src go1.14 time/Duration#, msgAndArgs ...interface{}) {
115 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Eventuallyscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Eventually().(t, condition, waitFor, tick, msgAndArgs...) {
116 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
117 }
118 }
119
120 // Exactly asserts that two objects are equal in value and type.
121 //
122 // assert.Exactly(t, int32(123), int64(123))
123 func Exactlyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Exactly().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
124 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Exactlyscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Exactly().(t, expected, actual, msgAndArgs...) {
125 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
126 }
127 }
128
129 // Fail reports a failure through
130 func Failscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Fail().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, failureMessage string, msgAndArgs ...interface{}) {
131 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Failscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Fail().(t, failureMessage, msgAndArgs...) {
132 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
133 }
134 }
135
136 // FailNow fails test
137 func FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/FailNow().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, failureMessage string, msgAndArgs ...interface{}) {
138 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.FailNowscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/FailNow().(t, failureMessage, msgAndArgs...) {
139 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
140 }
141 }
142
143 // False asserts that the specified value is false.
144 //
145 // assert.False(t, myBool)
146 func Falsescip-go gomod github.com/tj/assert . `github.com/tj/assert`/False().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, value bool, msgAndArgs ...interface{}) {
147 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/False().(t, value, msgAndArgs...) {
148 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
149 }
150 }
151
152 // FileExists checks whether a file exists in the given path. It also fails if
153 // the path points to a directory or there is an error when trying to check the file.
154 func FileExistsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/FileExists().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, path string, msgAndArgs ...interface{}) {
155 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.FileExistsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/FileExists().(t, path, msgAndArgs...) {
156 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
157 }
158 }
159
160 // Greater asserts that the first element is greater than the second
161 //
162 // assert.Greater(t, 2, 1)
163 // assert.Greater(t, float64(2), float64(1))
164 // assert.Greater(t, "b", "a")
165 func Greaterscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Greater().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
166 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Greaterscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Greater().(t, e1, e2, msgAndArgs...) {
167 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
168 }
169 }
170
171 // GreaterOrEqual asserts that the first element is greater than or equal to the second
172 //
173 // assert.GreaterOrEqual(t, 2, 1)
174 // assert.GreaterOrEqual(t, 2, 2)
175 // assert.GreaterOrEqual(t, "b", "a")
176 // assert.GreaterOrEqual(t, "b", "b")
177 func GreaterOrEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/GreaterOrEqual().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
178 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.GreaterOrEqualscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/GreaterOrEqual().(t, e1, e2, msgAndArgs...) {
179 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
180 }
181 }
182
183 // HTTPBodyContains asserts that a specified handler returns a
184 // body that contains a string.
185 //
186 // assert.HTTPBodyContains(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
187 //
188 // Returns whether the assertion was successful (true) or not (false).
189 func HTTPBodyContainsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPBodyContains().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, str interface{}, msgAndArgs ...interface{}) {
190 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPBodyContainsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPBodyContains().(t, handler, method, url, values, str, msgAndArgs...) {
191 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
192 }
193 }
194
195 // HTTPBodyNotContains asserts that a specified handler returns a
196 // body that does not contain a string.
197 //
198 // assert.HTTPBodyNotContains(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
199 //
200 // Returns whether the assertion was successful (true) or not (false).
201 func HTTPBodyNotContainsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPBodyNotContains().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, str interface{}, msgAndArgs ...interface{}) {
202 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPBodyNotContainsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPBodyNotContains().(t, handler, method, url, values, str, msgAndArgs...) {
203 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
204 }
205 }
206
207 // HTTPError asserts that a specified handler returns an error status code.
208 //
209 // assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}
210 //
211 // Returns whether the assertion was successful (true) or not (false).
212 func HTTPErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPError().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, msgAndArgs ...interface{}) {
213 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPErrorscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPError().(t, handler, method, url, values, msgAndArgs...) {
214 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
215 }
216 }
217
218 // HTTPRedirect asserts that a specified handler returns a redirect status code.
219 //
220 // assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}
221 //
222 // Returns whether the assertion was successful (true) or not (false).
223 func HTTPRedirectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPRedirect().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, msgAndArgs ...interface{}) {
224 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPRedirectscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPRedirect().(t, handler, method, url, values, msgAndArgs...) {
225 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
226 }
227 }
228
229 // HTTPStatusCode asserts that a specified handler returns a specified status code.
230 //
231 // assert.HTTPStatusCode(t, myHandler, "GET", "/notImplemented", nil, 501)
232 //
233 // Returns whether the assertion was successful (true) or not (false).
234 func HTTPStatusCodescip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPStatusCode().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, statuscode int, msgAndArgs ...interface{}) {
235 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPStatusCodescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPStatusCode().(t, handler, method, url, values, statuscode, msgAndArgs...) {
236 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
237 }
238 }
239
240 // HTTPSuccess asserts that a specified handler returns a success status code.
241 //
242 // assert.HTTPSuccess(t, myHandler, "POST", "http://www.google.com", nil)
243 //
244 // Returns whether the assertion was successful (true) or not (false).
245 func HTTPSuccessscip-go gomod github.com/tj/assert . `github.com/tj/assert`/HTTPSuccess().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, handler httpscip-go gomod github.com/golang/go/src go1.14 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.14 `net/http`/HandlerFunc#, method string, url string, values urlscip-go gomod github.com/golang/go/src go1.14 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.14 `net/url`/Values#, msgAndArgs ...interface{}) {
246 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.HTTPSuccessscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/HTTPSuccess().(t, handler, method, url, values, msgAndArgs...) {
247 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
248 }
249 }
250
251 // Implements asserts that an object is implemented by the specified interface.
252 //
253 // assert.Implements(t, (*MyInterface)(nil), new(MyObject))
254 func Implementsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Implements().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
255 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Implementsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Implements().(t, interfaceObject, object, msgAndArgs...) {
256 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
257 }
258 }
259
260 // InDelta asserts that the two numerals are within delta of each other.
261 //
262 // assert.InDelta(t, math.Pi, 22/7.0, 0.01)
263 func InDeltascip-go gomod github.com/tj/assert . `github.com/tj/assert`/InDelta().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
264 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.InDeltascip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/InDelta().(t, expected, actual, delta, msgAndArgs...) {
265 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
266 }
267 }
268
269 // InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
270 func InDeltaMapValuesscip-go gomod github.com/tj/assert . `github.com/tj/assert`/InDeltaMapValues().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
271 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.InDeltaMapValuesscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/InDeltaMapValues().(t, expected, actual, delta, msgAndArgs...) {
272 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
273 }
274 }
275
276 // InDeltaSlice is the same as InDelta, except it compares two slices.
277 func InDeltaSlicescip-go gomod github.com/tj/assert . `github.com/tj/assert`/InDeltaSlice().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
278 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.InDeltaSlicescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/InDeltaSlice().(t, expected, actual, delta, msgAndArgs...) {
279 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
280 }
281 }
282
283 // InEpsilon asserts that expected and actual have a relative error less than epsilon
284 func InEpsilonscip-go gomod github.com/tj/assert . `github.com/tj/assert`/InEpsilon().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
285 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.InEpsilonscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/InEpsilon().(t, expected, actual, epsilon, msgAndArgs...) {
286 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
287 }
288 }
289
290 // InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
291 func InEpsilonSlicescip-go gomod github.com/tj/assert . `github.com/tj/assert`/InEpsilonSlice().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
292 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.InEpsilonSlicescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/InEpsilonSlice().(t, expected, actual, epsilon, msgAndArgs...) {
293 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
294 }
295 }
296
297 // IsType asserts that the specified objects are of the same type.
298 func IsTypescip-go gomod github.com/tj/assert . `github.com/tj/assert`/IsType().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {
299 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.IsTypescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/IsType().(t, expectedType, object, msgAndArgs...) {
300 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
301 }
302 }
303
304 // JSONEq asserts that two JSON strings are equivalent.
305 //
306 // assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
307 func JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/JSONEq().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected string, actual string, msgAndArgs ...interface{}) {
308 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.JSONEqscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/JSONEq().(t, expected, actual, msgAndArgs...) {
309 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
310 }
311 }
312
313 // Len asserts that the specified object has specific length.
314 // Len also fails if the object has a type that len() not accept.
315 //
316 // assert.Len(t, mySlice, 3)
317 func Lenscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Len().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, object interface{}, length int, msgAndArgs ...interface{}) {
318 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Lenscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Len().(t, object, length, msgAndArgs...) {
319 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
320 }
321 }
322
323 // Less asserts that the first element is less than the second
324 //
325 // assert.Less(t, 1, 2)
326 // assert.Less(t, float64(1), float64(2))
327 // assert.Less(t, "a", "b")
328 func Lessscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Less().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
329 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Lessscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Less().(t, e1, e2, msgAndArgs...) {
330 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
331 }
332 }
333
334 // LessOrEqual asserts that the first element is less than or equal to the second
335 //
336 // assert.LessOrEqual(t, 1, 2)
337 // assert.LessOrEqual(t, 2, 2)
338 // assert.LessOrEqual(t, "a", "b")
339 // assert.LessOrEqual(t, "b", "b")
340 func LessOrEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/LessOrEqual().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
341 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.LessOrEqualscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/LessOrEqual().(t, e1, e2, msgAndArgs...) {
342 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
343 }
344 }
345
346 // Never asserts that the given condition doesn't satisfy in waitFor time,
347 // periodically checking the target function each tick.
348 //
349 // assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
350 func Neverscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Never().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, condition func() bool, waitFor timescip-go gomod github.com/golang/go/src go1.14 time/.Durationscip-go gomod github.com/golang/go/src go1.14 time/Duration#, tick timescip-go gomod github.com/golang/go/src go1.14 time/.Durationscip-go gomod github.com/golang/go/src go1.14 time/Duration#, msgAndArgs ...interface{}) {
351 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Neverscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Never().(t, condition, waitFor, tick, msgAndArgs...) {
352 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
353 }
354 }
355
356 // Nil asserts that the specified object is nil.
357 //
358 // assert.Nil(t, err)
359 func Nilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Nil().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, object interface{}, msgAndArgs ...interface{}) {
360 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, object, msgAndArgs...) {
361 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
362 }
363 }
364
365 // NoDirExists checks whether a directory does not exist in the given path.
366 // It fails if the path points to an existing _directory_ only.
367 func NoDirExistsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NoDirExists().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, path string, msgAndArgs ...interface{}) {
368 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NoDirExistsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NoDirExists().(t, path, msgAndArgs...) {
369 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
370 }
371 }
372
373 // NoError asserts that a function returned no error (i.e. `nil`).
374 //
375 // actualObj, err := SomeFunction()
376 // if assert.NoError(t, err) {
377 // assert.Equal(t, expectedObj, actualObj)
378 // }
379 func NoErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NoError().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, err error, msgAndArgs ...interface{}) {
380 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NoError().(t, err, msgAndArgs...) {
381 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
382 }
383 }
384
385 // NoFileExists checks whether a file does not exist in a given path. It fails
386 // if the path points to an existing _file_ only.
387 func NoFileExistsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NoFileExists().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, path string, msgAndArgs ...interface{}) {
388 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NoFileExistsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NoFileExists().(t, path, msgAndArgs...) {
389 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
390 }
391 }
392
393 // NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
394 // specified substring or element.
395 //
396 // assert.NotContains(t, "Hello World", "Earth")
397 // assert.NotContains(t, ["Hello", "World"], "Earth")
398 // assert.NotContains(t, {"Hello": "World"}, "Earth")
399 func NotContainsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotContains().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, s interface{}, contains interface{}, msgAndArgs ...interface{}) {
400 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotContainsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotContains().(t, s, contains, msgAndArgs...) {
401 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
402 }
403 }
404
405 // NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
406 // a slice or a channel with len == 0.
407 //
408 // if assert.NotEmpty(t, obj) {
409 // assert.Equal(t, "two", obj[1])
410 // }
411 func NotEmptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotEmpty().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, object interface{}, msgAndArgs ...interface{}) {
412 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotEmptyscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotEmpty().(t, object, msgAndArgs...) {
413 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
414 }
415 }
416
417 // NotEqual asserts that the specified values are NOT equal.
418 //
419 // assert.NotEqual(t, obj1, obj2)
420 //
421 // Pointer variable equality is determined based on the equality of the
422 // referenced values (as opposed to the memory addresses).
423 func NotEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotEqual().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
424 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotEqualscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotEqual().(t, expected, actual, msgAndArgs...) {
425 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
426 }
427 }
428
429 // NotEqualValues asserts that two objects are not equal even when converted to the same type
430 //
431 // assert.NotEqualValues(t, obj1, obj2)
432 func NotEqualValuesscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotEqualValues().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
433 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotEqualValuesscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotEqualValues().(t, expected, actual, msgAndArgs...) {
434 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
435 }
436 }
437
438 // NotNil asserts that the specified object is not nil.
439 //
440 // assert.NotNil(t, err)
441 func NotNilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotNil().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, object interface{}, msgAndArgs ...interface{}) {
442 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotNilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotNil().(t, object, msgAndArgs...) {
443 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
444 }
445 }
446
447 // NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.
448 //
449 // assert.NotPanics(t, func(){ RemainCalm() })
450 func NotPanicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotPanics().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, f assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicTestFuncscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicTestFunc#, msgAndArgs ...interface{}) {
451 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotPanicsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotPanics().(t, f, msgAndArgs...) {
452 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
453 }
454 }
455
456 // NotRegexp asserts that a specified regexp does not match a string.
457 //
458 // assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting")
459 // assert.NotRegexp(t, "^start", "it's not starting")
460 func NotRegexpscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotRegexp().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, rx interface{}, str interface{}, msgAndArgs ...interface{}) {
461 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotRegexpscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotRegexp().(t, rx, str, msgAndArgs...) {
462 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
463 }
464 }
465
466 // NotSame asserts that two pointers do not reference the same object.
467 //
468 // assert.NotSame(t, ptr1, ptr2)
469 //
470 // Both arguments must be pointer variables. Pointer variable sameness is
471 // determined based on the equality of both type and value.
472 func NotSamescip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotSame().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
473 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotSamescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotSame().(t, expected, actual, msgAndArgs...) {
474 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
475 }
476 }
477
478 // NotSubset asserts that the specified list(array, slice...) contains not all
479 // elements given in the specified subset(array, slice...).
480 //
481 // assert.NotSubset(t, [1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]")
482 func NotSubsetscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotSubset().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, list interface{}, subset interface{}, msgAndArgs ...interface{}) {
483 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotSubsetscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotSubset().(t, list, subset, msgAndArgs...) {
484 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
485 }
486 }
487
488 // NotZero asserts that i is not the zero value for its type.
489 func NotZeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/NotZero().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, i interface{}, msgAndArgs ...interface{}) {
490 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.NotZeroscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/NotZero().(t, i, msgAndArgs...) {
491 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
492 }
493 }
494
495 // Panics asserts that the code inside the specified PanicTestFunc panics.
496 //
497 // assert.Panics(t, func(){ GoCrazy() })
498 func Panicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Panics().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, f assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicTestFuncscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicTestFunc#, msgAndArgs ...interface{}) {
499 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Panicsscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Panics().(t, f, msgAndArgs...) {
500 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
501 }
502 }
503
504 // PanicsWithError asserts that the code inside the specified PanicTestFunc
505 // panics, and that the recovered panic value is an error that satisfies the
506 // EqualError comparison.
507 //
508 // assert.PanicsWithError(t, "crazy error", func(){ GoCrazy() })
509 func PanicsWithErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/PanicsWithError().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, errString string, f assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicTestFuncscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicTestFunc#, msgAndArgs ...interface{}) {
510 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicsWithErrorscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicsWithError().(t, errString, f, msgAndArgs...) {
511 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
512 }
513 }
514
515 // PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
516 // the recovered panic value equals the expected panic value.
517 //
518 // assert.PanicsWithValue(t, "crazy error", func(){ GoCrazy() })
519 func PanicsWithValuescip-go gomod github.com/tj/assert . `github.com/tj/assert`/PanicsWithValue().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, f assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicTestFuncscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicTestFunc#, msgAndArgs ...interface{}) {
520 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.PanicsWithValuescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/PanicsWithValue().(t, expected, f, msgAndArgs...) {
521 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
522 }
523 }
524
525 // Regexp asserts that a specified regexp matches a string.
526 //
527 // assert.Regexp(t, regexp.MustCompile("start"), "it's starting")
528 // assert.Regexp(t, "start...$", "it's not starting")
529 func Regexpscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Regexp().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, rx interface{}, str interface{}, msgAndArgs ...interface{}) {
530 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Regexpscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Regexp().(t, rx, str, msgAndArgs...) {
531 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
532 }
533 }
534
535 // Same asserts that two pointers reference the same object.
536 //
537 // assert.Same(t, ptr1, ptr2)
538 //
539 // Both arguments must be pointer variables. Pointer variable sameness is
540 // determined based on the equality of both type and value.
541 func Samescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Same().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
542 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Samescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Same().(t, expected, actual, msgAndArgs...) {
543 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
544 }
545 }
546
547 // Subset asserts that the specified list(array, slice...) contains all
548 // elements given in the specified subset(array, slice...).
549 //
550 // assert.Subset(t, [1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]")
551 func Subsetscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Subset().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, list interface{}, subset interface{}, msgAndArgs ...interface{}) {
552 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Subsetscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Subset().(t, list, subset, msgAndArgs...) {
553 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
554 }
555 }
556
557 // True asserts that the specified value is true.
558 //
559 // assert.True(t, myBool)
560 func Truescip-go gomod github.com/tj/assert . `github.com/tj/assert`/True().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, value bool, msgAndArgs ...interface{}) {
561 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/True().(t, value, msgAndArgs...) {
562 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
563 }
564 }
565
566 // WithinDuration asserts that the two times are within duration delta of each other.
567 //
568 // assert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second)
569 func WithinDurationscip-go gomod github.com/tj/assert . `github.com/tj/assert`/WithinDuration().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected timescip-go gomod github.com/golang/go/src go1.14 time/.Timescip-go gomod github.com/golang/go/src go1.14 time/Time#, actual timescip-go gomod github.com/golang/go/src go1.14 time/.Timescip-go gomod github.com/golang/go/src go1.14 time/Time#, delta timescip-go gomod github.com/golang/go/src go1.14 time/.Durationscip-go gomod github.com/golang/go/src go1.14 time/Duration#, msgAndArgs ...interface{}) {
570 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.WithinDurationscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/WithinDuration().(t, expected, actual, delta, msgAndArgs...) {
571 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
572 }
573 }
574
575 // YAMLEq asserts that two YAML strings are equivalent.
576 func YAMLEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/YAMLEq().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, expected string, actual string, msgAndArgs ...interface{}) {
577 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.YAMLEqscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/YAMLEq().(t, expected, actual, msgAndArgs...) {
578 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
579 }
580 }
581
582 // Zero asserts that i is the zero value for its type.
583 func Zeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Zero().(t TestingTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#, i interface{}, msgAndArgs ...interface{}) {
584 if !assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Zeroscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Zero().(t, i, msgAndArgs...) {
585 t.FailNowscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestingT#FailNow.()
586 }
587 }