1
2
3 package require
4
5 import (
6 assert "github.com/stretchr/testify/assert"
7 http "net/http"
8 url "net/url"
9 time "time"
10 )
11
12
13 func Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{}) {
14 if h, ok := t.(tHelper); ok {
15 h.Helper()
16 }
17 if assert.Condition(t, comp, msgAndArgs...) {
18 return
19 }
20 t.FailNow()
21 }
22
23
24 func Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{}) {
25 if h, ok := t.(tHelper); ok {
26 h.Helper()
27 }
28 if assert.Conditionf(t, comp, msg, args...) {
29 return
30 }
31 t.FailNow()
32 }
33
34
35
36
37
38
39
40 func Contains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{}) {
41 if h, ok := t.(tHelper); ok {
42 h.Helper()
43 }
44 if assert.Contains(t, s, contains, msgAndArgs...) {
45 return
46 }
47 t.FailNow()
48 }
49
50
51
52
53
54
55
56 func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) {
57 if h, ok := t.(tHelper); ok {
58 h.Helper()
59 }
60 if assert.Containsf(t, s, contains, msg, args...) {
61 return
62 }
63 t.FailNow()
64 }
65
66
67
68 func DirExists(t TestingT, path string, msgAndArgs ...interface{}) {
69 if h, ok := t.(tHelper); ok {
70 h.Helper()
71 }
72 if assert.DirExists(t, path, msgAndArgs...) {
73 return
74 }
75 t.FailNow()
76 }
77
78
79
80 func DirExistsf(t TestingT, path string, msg string, args ...interface{}) {
81 if h, ok := t.(tHelper); ok {
82 h.Helper()
83 }
84 if assert.DirExistsf(t, path, msg, args...) {
85 return
86 }
87 t.FailNow()
88 }
89
90
91
92
93
94
95 func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
96 if h, ok := t.(tHelper); ok {
97 h.Helper()
98 }
99 if assert.ElementsMatch(t, listA, listB, msgAndArgs...) {
100 return
101 }
102 t.FailNow()
103 }
104
105
106
107
108
109
110 func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) {
111 if h, ok := t.(tHelper); ok {
112 h.Helper()
113 }
114 if assert.ElementsMatchf(t, listA, listB, msg, args...) {
115 return
116 }
117 t.FailNow()
118 }
119
120
121
122
123
124 func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) {
125 if h, ok := t.(tHelper); ok {
126 h.Helper()
127 }
128 if assert.Empty(t, object, msgAndArgs...) {
129 return
130 }
131 t.FailNow()
132 }
133
134
135
136
137
138 func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) {
139 if h, ok := t.(tHelper); ok {
140 h.Helper()
141 }
142 if assert.Emptyf(t, object, msg, args...) {
143 return
144 }
145 t.FailNow()
146 }
147
148
149
150
151
152
153
154
155 func Equal(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
156 if h, ok := t.(tHelper); ok {
157 h.Helper()
158 }
159 if assert.Equal(t, expected, actual, msgAndArgs...) {
160 return
161 }
162 t.FailNow()
163 }
164
165
166
167
168
169
170 func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{}) {
171 if h, ok := t.(tHelper); ok {
172 h.Helper()
173 }
174 if assert.EqualError(t, theError, errString, msgAndArgs...) {
175 return
176 }
177 t.FailNow()
178 }
179
180
181
182
183
184
185 func EqualErrorf(t TestingT, theError error, errString string, msg string, args ...interface{}) {
186 if h, ok := t.(tHelper); ok {
187 h.Helper()
188 }
189 if assert.EqualErrorf(t, theError, errString, msg, args...) {
190 return
191 }
192 t.FailNow()
193 }
194
195
196
197
198
199
200
201
202
203
204
205 func EqualExportedValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
206 if h, ok := t.(tHelper); ok {
207 h.Helper()
208 }
209 if assert.EqualExportedValues(t, expected, actual, msgAndArgs...) {
210 return
211 }
212 t.FailNow()
213 }
214
215
216
217
218
219
220
221
222
223
224
225 func EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
226 if h, ok := t.(tHelper); ok {
227 h.Helper()
228 }
229 if assert.EqualExportedValuesf(t, expected, actual, msg, args...) {
230 return
231 }
232 t.FailNow()
233 }
234
235
236
237
238
239 func EqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
240 if h, ok := t.(tHelper); ok {
241 h.Helper()
242 }
243 if assert.EqualValues(t, expected, actual, msgAndArgs...) {
244 return
245 }
246 t.FailNow()
247 }
248
249
250
251
252
253 func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
254 if h, ok := t.(tHelper); ok {
255 h.Helper()
256 }
257 if assert.EqualValuesf(t, expected, actual, msg, args...) {
258 return
259 }
260 t.FailNow()
261 }
262
263
264
265
266
267
268
269
270 func Equalf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
271 if h, ok := t.(tHelper); ok {
272 h.Helper()
273 }
274 if assert.Equalf(t, expected, actual, msg, args...) {
275 return
276 }
277 t.FailNow()
278 }
279
280
281
282
283
284
285
286 func Error(t TestingT, err error, msgAndArgs ...interface{}) {
287 if h, ok := t.(tHelper); ok {
288 h.Helper()
289 }
290 if assert.Error(t, err, msgAndArgs...) {
291 return
292 }
293 t.FailNow()
294 }
295
296
297
298 func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) {
299 if h, ok := t.(tHelper); ok {
300 h.Helper()
301 }
302 if assert.ErrorAs(t, err, target, msgAndArgs...) {
303 return
304 }
305 t.FailNow()
306 }
307
308
309
310 func ErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) {
311 if h, ok := t.(tHelper); ok {
312 h.Helper()
313 }
314 if assert.ErrorAsf(t, err, target, msg, args...) {
315 return
316 }
317 t.FailNow()
318 }
319
320
321
322
323
324
325 func ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...interface{}) {
326 if h, ok := t.(tHelper); ok {
327 h.Helper()
328 }
329 if assert.ErrorContains(t, theError, contains, msgAndArgs...) {
330 return
331 }
332 t.FailNow()
333 }
334
335
336
337
338
339
340 func ErrorContainsf(t TestingT, theError error, contains string, msg string, args ...interface{}) {
341 if h, ok := t.(tHelper); ok {
342 h.Helper()
343 }
344 if assert.ErrorContainsf(t, theError, contains, msg, args...) {
345 return
346 }
347 t.FailNow()
348 }
349
350
351
352 func ErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) {
353 if h, ok := t.(tHelper); ok {
354 h.Helper()
355 }
356 if assert.ErrorIs(t, err, target, msgAndArgs...) {
357 return
358 }
359 t.FailNow()
360 }
361
362
363
364 func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
365 if h, ok := t.(tHelper); ok {
366 h.Helper()
367 }
368 if assert.ErrorIsf(t, err, target, msg, args...) {
369 return
370 }
371 t.FailNow()
372 }
373
374
375
376
377
378
379
380 func Errorf(t TestingT, err error, msg string, args ...interface{}) {
381 if h, ok := t.(tHelper); ok {
382 h.Helper()
383 }
384 if assert.Errorf(t, err, msg, args...) {
385 return
386 }
387 t.FailNow()
388 }
389
390
391
392
393
394 func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
395 if h, ok := t.(tHelper); ok {
396 h.Helper()
397 }
398 if assert.Eventually(t, condition, waitFor, tick, msgAndArgs...) {
399 return
400 }
401 t.FailNow()
402 }
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422 func EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
423 if h, ok := t.(tHelper); ok {
424 h.Helper()
425 }
426 if assert.EventuallyWithT(t, condition, waitFor, tick, msgAndArgs...) {
427 return
428 }
429 t.FailNow()
430 }
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450 func EventuallyWithTf(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
451 if h, ok := t.(tHelper); ok {
452 h.Helper()
453 }
454 if assert.EventuallyWithTf(t, condition, waitFor, tick, msg, args...) {
455 return
456 }
457 t.FailNow()
458 }
459
460
461
462
463
464 func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
465 if h, ok := t.(tHelper); ok {
466 h.Helper()
467 }
468 if assert.Eventuallyf(t, condition, waitFor, tick, msg, args...) {
469 return
470 }
471 t.FailNow()
472 }
473
474
475
476
477 func Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
478 if h, ok := t.(tHelper); ok {
479 h.Helper()
480 }
481 if assert.Exactly(t, expected, actual, msgAndArgs...) {
482 return
483 }
484 t.FailNow()
485 }
486
487
488
489
490 func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
491 if h, ok := t.(tHelper); ok {
492 h.Helper()
493 }
494 if assert.Exactlyf(t, expected, actual, msg, args...) {
495 return
496 }
497 t.FailNow()
498 }
499
500
501 func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) {
502 if h, ok := t.(tHelper); ok {
503 h.Helper()
504 }
505 if assert.Fail(t, failureMessage, msgAndArgs...) {
506 return
507 }
508 t.FailNow()
509 }
510
511
512 func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) {
513 if h, ok := t.(tHelper); ok {
514 h.Helper()
515 }
516 if assert.FailNow(t, failureMessage, msgAndArgs...) {
517 return
518 }
519 t.FailNow()
520 }
521
522
523 func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) {
524 if h, ok := t.(tHelper); ok {
525 h.Helper()
526 }
527 if assert.FailNowf(t, failureMessage, msg, args...) {
528 return
529 }
530 t.FailNow()
531 }
532
533
534 func Failf(t TestingT, failureMessage string, msg string, args ...interface{}) {
535 if h, ok := t.(tHelper); ok {
536 h.Helper()
537 }
538 if assert.Failf(t, failureMessage, msg, args...) {
539 return
540 }
541 t.FailNow()
542 }
543
544
545
546
547 func False(t TestingT, value bool, msgAndArgs ...interface{}) {
548 if h, ok := t.(tHelper); ok {
549 h.Helper()
550 }
551 if assert.False(t, value, msgAndArgs...) {
552 return
553 }
554 t.FailNow()
555 }
556
557
558
559
560 func Falsef(t TestingT, value bool, msg string, args ...interface{}) {
561 if h, ok := t.(tHelper); ok {
562 h.Helper()
563 }
564 if assert.Falsef(t, value, msg, args...) {
565 return
566 }
567 t.FailNow()
568 }
569
570
571
572 func FileExists(t TestingT, path string, msgAndArgs ...interface{}) {
573 if h, ok := t.(tHelper); ok {
574 h.Helper()
575 }
576 if assert.FileExists(t, path, msgAndArgs...) {
577 return
578 }
579 t.FailNow()
580 }
581
582
583
584 func FileExistsf(t TestingT, path string, msg string, args ...interface{}) {
585 if h, ok := t.(tHelper); ok {
586 h.Helper()
587 }
588 if assert.FileExistsf(t, path, msg, args...) {
589 return
590 }
591 t.FailNow()
592 }
593
594
595
596
597
598
599 func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
600 if h, ok := t.(tHelper); ok {
601 h.Helper()
602 }
603 if assert.Greater(t, e1, e2, msgAndArgs...) {
604 return
605 }
606 t.FailNow()
607 }
608
609
610
611
612
613
614
615 func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
616 if h, ok := t.(tHelper); ok {
617 h.Helper()
618 }
619 if assert.GreaterOrEqual(t, e1, e2, msgAndArgs...) {
620 return
621 }
622 t.FailNow()
623 }
624
625
626
627
628
629
630
631 func GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
632 if h, ok := t.(tHelper); ok {
633 h.Helper()
634 }
635 if assert.GreaterOrEqualf(t, e1, e2, msg, args...) {
636 return
637 }
638 t.FailNow()
639 }
640
641
642
643
644
645
646 func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
647 if h, ok := t.(tHelper); ok {
648 h.Helper()
649 }
650 if assert.Greaterf(t, e1, e2, msg, args...) {
651 return
652 }
653 t.FailNow()
654 }
655
656
657
658
659
660
661
662 func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
663 if h, ok := t.(tHelper); ok {
664 h.Helper()
665 }
666 if assert.HTTPBodyContains(t, handler, method, url, values, str, msgAndArgs...) {
667 return
668 }
669 t.FailNow()
670 }
671
672
673
674
675
676
677
678 func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
679 if h, ok := t.(tHelper); ok {
680 h.Helper()
681 }
682 if assert.HTTPBodyContainsf(t, handler, method, url, values, str, msg, args...) {
683 return
684 }
685 t.FailNow()
686 }
687
688
689
690
691
692
693
694 func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
695 if h, ok := t.(tHelper); ok {
696 h.Helper()
697 }
698 if assert.HTTPBodyNotContains(t, handler, method, url, values, str, msgAndArgs...) {
699 return
700 }
701 t.FailNow()
702 }
703
704
705
706
707
708
709
710 func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
711 if h, ok := t.(tHelper); ok {
712 h.Helper()
713 }
714 if assert.HTTPBodyNotContainsf(t, handler, method, url, values, str, msg, args...) {
715 return
716 }
717 t.FailNow()
718 }
719
720
721
722
723
724
725 func HTTPError(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
726 if h, ok := t.(tHelper); ok {
727 h.Helper()
728 }
729 if assert.HTTPError(t, handler, method, url, values, msgAndArgs...) {
730 return
731 }
732 t.FailNow()
733 }
734
735
736
737
738
739
740 func HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
741 if h, ok := t.(tHelper); ok {
742 h.Helper()
743 }
744 if assert.HTTPErrorf(t, handler, method, url, values, msg, args...) {
745 return
746 }
747 t.FailNow()
748 }
749
750
751
752
753
754
755 func HTTPRedirect(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
756 if h, ok := t.(tHelper); ok {
757 h.Helper()
758 }
759 if assert.HTTPRedirect(t, handler, method, url, values, msgAndArgs...) {
760 return
761 }
762 t.FailNow()
763 }
764
765
766
767
768
769
770 func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
771 if h, ok := t.(tHelper); ok {
772 h.Helper()
773 }
774 if assert.HTTPRedirectf(t, handler, method, url, values, msg, args...) {
775 return
776 }
777 t.FailNow()
778 }
779
780
781
782
783
784
785 func HTTPStatusCode(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msgAndArgs ...interface{}) {
786 if h, ok := t.(tHelper); ok {
787 h.Helper()
788 }
789 if assert.HTTPStatusCode(t, handler, method, url, values, statuscode, msgAndArgs...) {
790 return
791 }
792 t.FailNow()
793 }
794
795
796
797
798
799
800 func HTTPStatusCodef(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{}) {
801 if h, ok := t.(tHelper); ok {
802 h.Helper()
803 }
804 if assert.HTTPStatusCodef(t, handler, method, url, values, statuscode, msg, args...) {
805 return
806 }
807 t.FailNow()
808 }
809
810
811
812
813
814
815 func HTTPSuccess(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
816 if h, ok := t.(tHelper); ok {
817 h.Helper()
818 }
819 if assert.HTTPSuccess(t, handler, method, url, values, msgAndArgs...) {
820 return
821 }
822 t.FailNow()
823 }
824
825
826
827
828
829
830 func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
831 if h, ok := t.(tHelper); ok {
832 h.Helper()
833 }
834 if assert.HTTPSuccessf(t, handler, method, url, values, msg, args...) {
835 return
836 }
837 t.FailNow()
838 }
839
840
841
842
843 func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
844 if h, ok := t.(tHelper); ok {
845 h.Helper()
846 }
847 if assert.Implements(t, interfaceObject, object, msgAndArgs...) {
848 return
849 }
850 t.FailNow()
851 }
852
853
854
855
856 func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) {
857 if h, ok := t.(tHelper); ok {
858 h.Helper()
859 }
860 if assert.Implementsf(t, interfaceObject, object, msg, args...) {
861 return
862 }
863 t.FailNow()
864 }
865
866
867
868
869 func InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
870 if h, ok := t.(tHelper); ok {
871 h.Helper()
872 }
873 if assert.InDelta(t, expected, actual, delta, msgAndArgs...) {
874 return
875 }
876 t.FailNow()
877 }
878
879
880 func InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
881 if h, ok := t.(tHelper); ok {
882 h.Helper()
883 }
884 if assert.InDeltaMapValues(t, expected, actual, delta, msgAndArgs...) {
885 return
886 }
887 t.FailNow()
888 }
889
890
891 func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
892 if h, ok := t.(tHelper); ok {
893 h.Helper()
894 }
895 if assert.InDeltaMapValuesf(t, expected, actual, delta, msg, args...) {
896 return
897 }
898 t.FailNow()
899 }
900
901
902 func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
903 if h, ok := t.(tHelper); ok {
904 h.Helper()
905 }
906 if assert.InDeltaSlice(t, expected, actual, delta, msgAndArgs...) {
907 return
908 }
909 t.FailNow()
910 }
911
912
913 func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
914 if h, ok := t.(tHelper); ok {
915 h.Helper()
916 }
917 if assert.InDeltaSlicef(t, expected, actual, delta, msg, args...) {
918 return
919 }
920 t.FailNow()
921 }
922
923
924
925
926 func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
927 if h, ok := t.(tHelper); ok {
928 h.Helper()
929 }
930 if assert.InDeltaf(t, expected, actual, delta, msg, args...) {
931 return
932 }
933 t.FailNow()
934 }
935
936
937 func InEpsilon(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
938 if h, ok := t.(tHelper); ok {
939 h.Helper()
940 }
941 if assert.InEpsilon(t, expected, actual, epsilon, msgAndArgs...) {
942 return
943 }
944 t.FailNow()
945 }
946
947
948 func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
949 if h, ok := t.(tHelper); ok {
950 h.Helper()
951 }
952 if assert.InEpsilonSlice(t, expected, actual, epsilon, msgAndArgs...) {
953 return
954 }
955 t.FailNow()
956 }
957
958
959 func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
960 if h, ok := t.(tHelper); ok {
961 h.Helper()
962 }
963 if assert.InEpsilonSlicef(t, expected, actual, epsilon, msg, args...) {
964 return
965 }
966 t.FailNow()
967 }
968
969
970 func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
971 if h, ok := t.(tHelper); ok {
972 h.Helper()
973 }
974 if assert.InEpsilonf(t, expected, actual, epsilon, msg, args...) {
975 return
976 }
977 t.FailNow()
978 }
979
980
981
982
983
984
985 func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
986 if h, ok := t.(tHelper); ok {
987 h.Helper()
988 }
989 if assert.IsDecreasing(t, object, msgAndArgs...) {
990 return
991 }
992 t.FailNow()
993 }
994
995
996
997
998
999
1000 func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1001 if h, ok := t.(tHelper); ok {
1002 h.Helper()
1003 }
1004 if assert.IsDecreasingf(t, object, msg, args...) {
1005 return
1006 }
1007 t.FailNow()
1008 }
1009
1010
1011
1012
1013
1014
1015 func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1016 if h, ok := t.(tHelper); ok {
1017 h.Helper()
1018 }
1019 if assert.IsIncreasing(t, object, msgAndArgs...) {
1020 return
1021 }
1022 t.FailNow()
1023 }
1024
1025
1026
1027
1028
1029
1030 func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1031 if h, ok := t.(tHelper); ok {
1032 h.Helper()
1033 }
1034 if assert.IsIncreasingf(t, object, msg, args...) {
1035 return
1036 }
1037 t.FailNow()
1038 }
1039
1040
1041
1042
1043
1044
1045 func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1046 if h, ok := t.(tHelper); ok {
1047 h.Helper()
1048 }
1049 if assert.IsNonDecreasing(t, object, msgAndArgs...) {
1050 return
1051 }
1052 t.FailNow()
1053 }
1054
1055
1056
1057
1058
1059
1060 func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1061 if h, ok := t.(tHelper); ok {
1062 h.Helper()
1063 }
1064 if assert.IsNonDecreasingf(t, object, msg, args...) {
1065 return
1066 }
1067 t.FailNow()
1068 }
1069
1070
1071
1072
1073
1074
1075 func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1076 if h, ok := t.(tHelper); ok {
1077 h.Helper()
1078 }
1079 if assert.IsNonIncreasing(t, object, msgAndArgs...) {
1080 return
1081 }
1082 t.FailNow()
1083 }
1084
1085
1086
1087
1088
1089
1090 func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1091 if h, ok := t.(tHelper); ok {
1092 h.Helper()
1093 }
1094 if assert.IsNonIncreasingf(t, object, msg, args...) {
1095 return
1096 }
1097 t.FailNow()
1098 }
1099
1100
1101 func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {
1102 if h, ok := t.(tHelper); ok {
1103 h.Helper()
1104 }
1105 if assert.IsType(t, expectedType, object, msgAndArgs...) {
1106 return
1107 }
1108 t.FailNow()
1109 }
1110
1111
1112 func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) {
1113 if h, ok := t.(tHelper); ok {
1114 h.Helper()
1115 }
1116 if assert.IsTypef(t, expectedType, object, msg, args...) {
1117 return
1118 }
1119 t.FailNow()
1120 }
1121
1122
1123
1124
1125 func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) {
1126 if h, ok := t.(tHelper); ok {
1127 h.Helper()
1128 }
1129 if assert.JSONEq(t, expected, actual, msgAndArgs...) {
1130 return
1131 }
1132 t.FailNow()
1133 }
1134
1135
1136
1137
1138 func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
1139 if h, ok := t.(tHelper); ok {
1140 h.Helper()
1141 }
1142 if assert.JSONEqf(t, expected, actual, msg, args...) {
1143 return
1144 }
1145 t.FailNow()
1146 }
1147
1148
1149
1150
1151
1152 func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) {
1153 if h, ok := t.(tHelper); ok {
1154 h.Helper()
1155 }
1156 if assert.Len(t, object, length, msgAndArgs...) {
1157 return
1158 }
1159 t.FailNow()
1160 }
1161
1162
1163
1164
1165
1166 func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{}) {
1167 if h, ok := t.(tHelper); ok {
1168 h.Helper()
1169 }
1170 if assert.Lenf(t, object, length, msg, args...) {
1171 return
1172 }
1173 t.FailNow()
1174 }
1175
1176
1177
1178
1179
1180
1181 func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
1182 if h, ok := t.(tHelper); ok {
1183 h.Helper()
1184 }
1185 if assert.Less(t, e1, e2, msgAndArgs...) {
1186 return
1187 }
1188 t.FailNow()
1189 }
1190
1191
1192
1193
1194
1195
1196
1197 func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
1198 if h, ok := t.(tHelper); ok {
1199 h.Helper()
1200 }
1201 if assert.LessOrEqual(t, e1, e2, msgAndArgs...) {
1202 return
1203 }
1204 t.FailNow()
1205 }
1206
1207
1208
1209
1210
1211
1212
1213 func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
1214 if h, ok := t.(tHelper); ok {
1215 h.Helper()
1216 }
1217 if assert.LessOrEqualf(t, e1, e2, msg, args...) {
1218 return
1219 }
1220 t.FailNow()
1221 }
1222
1223
1224
1225
1226
1227
1228 func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
1229 if h, ok := t.(tHelper); ok {
1230 h.Helper()
1231 }
1232 if assert.Lessf(t, e1, e2, msg, args...) {
1233 return
1234 }
1235 t.FailNow()
1236 }
1237
1238
1239
1240
1241
1242 func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1243 if h, ok := t.(tHelper); ok {
1244 h.Helper()
1245 }
1246 if assert.Negative(t, e, msgAndArgs...) {
1247 return
1248 }
1249 t.FailNow()
1250 }
1251
1252
1253
1254
1255
1256 func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) {
1257 if h, ok := t.(tHelper); ok {
1258 h.Helper()
1259 }
1260 if assert.Negativef(t, e, msg, args...) {
1261 return
1262 }
1263 t.FailNow()
1264 }
1265
1266
1267
1268
1269
1270 func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
1271 if h, ok := t.(tHelper); ok {
1272 h.Helper()
1273 }
1274 if assert.Never(t, condition, waitFor, tick, msgAndArgs...) {
1275 return
1276 }
1277 t.FailNow()
1278 }
1279
1280
1281
1282
1283
1284 func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
1285 if h, ok := t.(tHelper); ok {
1286 h.Helper()
1287 }
1288 if assert.Neverf(t, condition, waitFor, tick, msg, args...) {
1289 return
1290 }
1291 t.FailNow()
1292 }
1293
1294
1295
1296
1297 func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1298 if h, ok := t.(tHelper); ok {
1299 h.Helper()
1300 }
1301 if assert.Nil(t, object, msgAndArgs...) {
1302 return
1303 }
1304 t.FailNow()
1305 }
1306
1307
1308
1309
1310 func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) {
1311 if h, ok := t.(tHelper); ok {
1312 h.Helper()
1313 }
1314 if assert.Nilf(t, object, msg, args...) {
1315 return
1316 }
1317 t.FailNow()
1318 }
1319
1320
1321
1322 func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) {
1323 if h, ok := t.(tHelper); ok {
1324 h.Helper()
1325 }
1326 if assert.NoDirExists(t, path, msgAndArgs...) {
1327 return
1328 }
1329 t.FailNow()
1330 }
1331
1332
1333
1334 func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) {
1335 if h, ok := t.(tHelper); ok {
1336 h.Helper()
1337 }
1338 if assert.NoDirExistsf(t, path, msg, args...) {
1339 return
1340 }
1341 t.FailNow()
1342 }
1343
1344
1345
1346
1347
1348
1349
1350 func NoError(t TestingT, err error, msgAndArgs ...interface{}) {
1351 if h, ok := t.(tHelper); ok {
1352 h.Helper()
1353 }
1354 if assert.NoError(t, err, msgAndArgs...) {
1355 return
1356 }
1357 t.FailNow()
1358 }
1359
1360
1361
1362
1363
1364
1365
1366 func NoErrorf(t TestingT, err error, msg string, args ...interface{}) {
1367 if h, ok := t.(tHelper); ok {
1368 h.Helper()
1369 }
1370 if assert.NoErrorf(t, err, msg, args...) {
1371 return
1372 }
1373 t.FailNow()
1374 }
1375
1376
1377
1378 func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) {
1379 if h, ok := t.(tHelper); ok {
1380 h.Helper()
1381 }
1382 if assert.NoFileExists(t, path, msgAndArgs...) {
1383 return
1384 }
1385 t.FailNow()
1386 }
1387
1388
1389
1390 func NoFileExistsf(t TestingT, path string, msg string, args ...interface{}) {
1391 if h, ok := t.(tHelper); ok {
1392 h.Helper()
1393 }
1394 if assert.NoFileExistsf(t, path, msg, args...) {
1395 return
1396 }
1397 t.FailNow()
1398 }
1399
1400
1401
1402
1403
1404
1405
1406 func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{}) {
1407 if h, ok := t.(tHelper); ok {
1408 h.Helper()
1409 }
1410 if assert.NotContains(t, s, contains, msgAndArgs...) {
1411 return
1412 }
1413 t.FailNow()
1414 }
1415
1416
1417
1418
1419
1420
1421
1422 func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) {
1423 if h, ok := t.(tHelper); ok {
1424 h.Helper()
1425 }
1426 if assert.NotContainsf(t, s, contains, msg, args...) {
1427 return
1428 }
1429 t.FailNow()
1430 }
1431
1432
1433
1434
1435
1436
1437
1438 func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1439 if h, ok := t.(tHelper); ok {
1440 h.Helper()
1441 }
1442 if assert.NotEmpty(t, object, msgAndArgs...) {
1443 return
1444 }
1445 t.FailNow()
1446 }
1447
1448
1449
1450
1451
1452
1453
1454 func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) {
1455 if h, ok := t.(tHelper); ok {
1456 h.Helper()
1457 }
1458 if assert.NotEmptyf(t, object, msg, args...) {
1459 return
1460 }
1461 t.FailNow()
1462 }
1463
1464
1465
1466
1467
1468
1469
1470 func NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1471 if h, ok := t.(tHelper); ok {
1472 h.Helper()
1473 }
1474 if assert.NotEqual(t, expected, actual, msgAndArgs...) {
1475 return
1476 }
1477 t.FailNow()
1478 }
1479
1480
1481
1482
1483 func NotEqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1484 if h, ok := t.(tHelper); ok {
1485 h.Helper()
1486 }
1487 if assert.NotEqualValues(t, expected, actual, msgAndArgs...) {
1488 return
1489 }
1490 t.FailNow()
1491 }
1492
1493
1494
1495
1496 func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
1497 if h, ok := t.(tHelper); ok {
1498 h.Helper()
1499 }
1500 if assert.NotEqualValuesf(t, expected, actual, msg, args...) {
1501 return
1502 }
1503 t.FailNow()
1504 }
1505
1506
1507
1508
1509
1510
1511
1512 func NotEqualf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
1513 if h, ok := t.(tHelper); ok {
1514 h.Helper()
1515 }
1516 if assert.NotEqualf(t, expected, actual, msg, args...) {
1517 return
1518 }
1519 t.FailNow()
1520 }
1521
1522
1523
1524 func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) {
1525 if h, ok := t.(tHelper); ok {
1526 h.Helper()
1527 }
1528 if assert.NotErrorIs(t, err, target, msgAndArgs...) {
1529 return
1530 }
1531 t.FailNow()
1532 }
1533
1534
1535
1536 func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
1537 if h, ok := t.(tHelper); ok {
1538 h.Helper()
1539 }
1540 if assert.NotErrorIsf(t, err, target, msg, args...) {
1541 return
1542 }
1543 t.FailNow()
1544 }
1545
1546
1547
1548
1549 func NotImplements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
1550 if h, ok := t.(tHelper); ok {
1551 h.Helper()
1552 }
1553 if assert.NotImplements(t, interfaceObject, object, msgAndArgs...) {
1554 return
1555 }
1556 t.FailNow()
1557 }
1558
1559
1560
1561
1562 func NotImplementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) {
1563 if h, ok := t.(tHelper); ok {
1564 h.Helper()
1565 }
1566 if assert.NotImplementsf(t, interfaceObject, object, msg, args...) {
1567 return
1568 }
1569 t.FailNow()
1570 }
1571
1572
1573
1574
1575 func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1576 if h, ok := t.(tHelper); ok {
1577 h.Helper()
1578 }
1579 if assert.NotNil(t, object, msgAndArgs...) {
1580 return
1581 }
1582 t.FailNow()
1583 }
1584
1585
1586
1587
1588 func NotNilf(t TestingT, object interface{}, msg string, args ...interface{}) {
1589 if h, ok := t.(tHelper); ok {
1590 h.Helper()
1591 }
1592 if assert.NotNilf(t, object, msg, args...) {
1593 return
1594 }
1595 t.FailNow()
1596 }
1597
1598
1599
1600
1601 func NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
1602 if h, ok := t.(tHelper); ok {
1603 h.Helper()
1604 }
1605 if assert.NotPanics(t, f, msgAndArgs...) {
1606 return
1607 }
1608 t.FailNow()
1609 }
1610
1611
1612
1613
1614 func NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{}) {
1615 if h, ok := t.(tHelper); ok {
1616 h.Helper()
1617 }
1618 if assert.NotPanicsf(t, f, msg, args...) {
1619 return
1620 }
1621 t.FailNow()
1622 }
1623
1624
1625
1626
1627
1628 func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) {
1629 if h, ok := t.(tHelper); ok {
1630 h.Helper()
1631 }
1632 if assert.NotRegexp(t, rx, str, msgAndArgs...) {
1633 return
1634 }
1635 t.FailNow()
1636 }
1637
1638
1639
1640
1641
1642 func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) {
1643 if h, ok := t.(tHelper); ok {
1644 h.Helper()
1645 }
1646 if assert.NotRegexpf(t, rx, str, msg, args...) {
1647 return
1648 }
1649 t.FailNow()
1650 }
1651
1652
1653
1654
1655
1656
1657
1658 func NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1659 if h, ok := t.(tHelper); ok {
1660 h.Helper()
1661 }
1662 if assert.NotSame(t, expected, actual, msgAndArgs...) {
1663 return
1664 }
1665 t.FailNow()
1666 }
1667
1668
1669
1670
1671
1672
1673
1674 func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
1675 if h, ok := t.(tHelper); ok {
1676 h.Helper()
1677 }
1678 if assert.NotSamef(t, expected, actual, msg, args...) {
1679 return
1680 }
1681 t.FailNow()
1682 }
1683
1684
1685
1686
1687
1688
1689
1690 func NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{}) {
1691 if h, ok := t.(tHelper); ok {
1692 h.Helper()
1693 }
1694 if assert.NotSubset(t, list, subset, msgAndArgs...) {
1695 return
1696 }
1697 t.FailNow()
1698 }
1699
1700
1701
1702
1703
1704
1705
1706 func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) {
1707 if h, ok := t.(tHelper); ok {
1708 h.Helper()
1709 }
1710 if assert.NotSubsetf(t, list, subset, msg, args...) {
1711 return
1712 }
1713 t.FailNow()
1714 }
1715
1716
1717 func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) {
1718 if h, ok := t.(tHelper); ok {
1719 h.Helper()
1720 }
1721 if assert.NotZero(t, i, msgAndArgs...) {
1722 return
1723 }
1724 t.FailNow()
1725 }
1726
1727
1728 func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) {
1729 if h, ok := t.(tHelper); ok {
1730 h.Helper()
1731 }
1732 if assert.NotZerof(t, i, msg, args...) {
1733 return
1734 }
1735 t.FailNow()
1736 }
1737
1738
1739
1740
1741 func Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
1742 if h, ok := t.(tHelper); ok {
1743 h.Helper()
1744 }
1745 if assert.Panics(t, f, msgAndArgs...) {
1746 return
1747 }
1748 t.FailNow()
1749 }
1750
1751
1752
1753
1754
1755
1756 func PanicsWithError(t TestingT, errString string, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
1757 if h, ok := t.(tHelper); ok {
1758 h.Helper()
1759 }
1760 if assert.PanicsWithError(t, errString, f, msgAndArgs...) {
1761 return
1762 }
1763 t.FailNow()
1764 }
1765
1766
1767
1768
1769
1770
1771 func PanicsWithErrorf(t TestingT, errString string, f assert.PanicTestFunc, msg string, args ...interface{}) {
1772 if h, ok := t.(tHelper); ok {
1773 h.Helper()
1774 }
1775 if assert.PanicsWithErrorf(t, errString, f, msg, args...) {
1776 return
1777 }
1778 t.FailNow()
1779 }
1780
1781
1782
1783
1784
1785 func PanicsWithValue(t TestingT, expected interface{}, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
1786 if h, ok := t.(tHelper); ok {
1787 h.Helper()
1788 }
1789 if assert.PanicsWithValue(t, expected, f, msgAndArgs...) {
1790 return
1791 }
1792 t.FailNow()
1793 }
1794
1795
1796
1797
1798
1799 func PanicsWithValuef(t TestingT, expected interface{}, f assert.PanicTestFunc, msg string, args ...interface{}) {
1800 if h, ok := t.(tHelper); ok {
1801 h.Helper()
1802 }
1803 if assert.PanicsWithValuef(t, expected, f, msg, args...) {
1804 return
1805 }
1806 t.FailNow()
1807 }
1808
1809
1810
1811
1812 func Panicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{}) {
1813 if h, ok := t.(tHelper); ok {
1814 h.Helper()
1815 }
1816 if assert.Panicsf(t, f, msg, args...) {
1817 return
1818 }
1819 t.FailNow()
1820 }
1821
1822
1823
1824
1825
1826 func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) {
1827 if h, ok := t.(tHelper); ok {
1828 h.Helper()
1829 }
1830 if assert.Positive(t, e, msgAndArgs...) {
1831 return
1832 }
1833 t.FailNow()
1834 }
1835
1836
1837
1838
1839
1840 func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) {
1841 if h, ok := t.(tHelper); ok {
1842 h.Helper()
1843 }
1844 if assert.Positivef(t, e, msg, args...) {
1845 return
1846 }
1847 t.FailNow()
1848 }
1849
1850
1851
1852
1853
1854 func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) {
1855 if h, ok := t.(tHelper); ok {
1856 h.Helper()
1857 }
1858 if assert.Regexp(t, rx, str, msgAndArgs...) {
1859 return
1860 }
1861 t.FailNow()
1862 }
1863
1864
1865
1866
1867
1868 func Regexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) {
1869 if h, ok := t.(tHelper); ok {
1870 h.Helper()
1871 }
1872 if assert.Regexpf(t, rx, str, msg, args...) {
1873 return
1874 }
1875 t.FailNow()
1876 }
1877
1878
1879
1880
1881
1882
1883
1884 func Same(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1885 if h, ok := t.(tHelper); ok {
1886 h.Helper()
1887 }
1888 if assert.Same(t, expected, actual, msgAndArgs...) {
1889 return
1890 }
1891 t.FailNow()
1892 }
1893
1894
1895
1896
1897
1898
1899
1900 func Samef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
1901 if h, ok := t.(tHelper); ok {
1902 h.Helper()
1903 }
1904 if assert.Samef(t, expected, actual, msg, args...) {
1905 return
1906 }
1907 t.FailNow()
1908 }
1909
1910
1911
1912
1913
1914
1915 func Subset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{}) {
1916 if h, ok := t.(tHelper); ok {
1917 h.Helper()
1918 }
1919 if assert.Subset(t, list, subset, msgAndArgs...) {
1920 return
1921 }
1922 t.FailNow()
1923 }
1924
1925
1926
1927
1928
1929
1930 func Subsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) {
1931 if h, ok := t.(tHelper); ok {
1932 h.Helper()
1933 }
1934 if assert.Subsetf(t, list, subset, msg, args...) {
1935 return
1936 }
1937 t.FailNow()
1938 }
1939
1940
1941
1942
1943 func True(t TestingT, value bool, msgAndArgs ...interface{}) {
1944 if h, ok := t.(tHelper); ok {
1945 h.Helper()
1946 }
1947 if assert.True(t, value, msgAndArgs...) {
1948 return
1949 }
1950 t.FailNow()
1951 }
1952
1953
1954
1955
1956 func Truef(t TestingT, value bool, msg string, args ...interface{}) {
1957 if h, ok := t.(tHelper); ok {
1958 h.Helper()
1959 }
1960 if assert.Truef(t, value, msg, args...) {
1961 return
1962 }
1963 t.FailNow()
1964 }
1965
1966
1967
1968
1969 func WithinDuration(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) {
1970 if h, ok := t.(tHelper); ok {
1971 h.Helper()
1972 }
1973 if assert.WithinDuration(t, expected, actual, delta, msgAndArgs...) {
1974 return
1975 }
1976 t.FailNow()
1977 }
1978
1979
1980
1981
1982 func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) {
1983 if h, ok := t.(tHelper); ok {
1984 h.Helper()
1985 }
1986 if assert.WithinDurationf(t, expected, actual, delta, msg, args...) {
1987 return
1988 }
1989 t.FailNow()
1990 }
1991
1992
1993
1994
1995 func WithinRange(t TestingT, actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{}) {
1996 if h, ok := t.(tHelper); ok {
1997 h.Helper()
1998 }
1999 if assert.WithinRange(t, actual, start, end, msgAndArgs...) {
2000 return
2001 }
2002 t.FailNow()
2003 }
2004
2005
2006
2007
2008 func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) {
2009 if h, ok := t.(tHelper); ok {
2010 h.Helper()
2011 }
2012 if assert.WithinRangef(t, actual, start, end, msg, args...) {
2013 return
2014 }
2015 t.FailNow()
2016 }
2017
2018
2019 func YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) {
2020 if h, ok := t.(tHelper); ok {
2021 h.Helper()
2022 }
2023 if assert.YAMLEq(t, expected, actual, msgAndArgs...) {
2024 return
2025 }
2026 t.FailNow()
2027 }
2028
2029
2030 func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
2031 if h, ok := t.(tHelper); ok {
2032 h.Helper()
2033 }
2034 if assert.YAMLEqf(t, expected, actual, msg, args...) {
2035 return
2036 }
2037 t.FailNow()
2038 }
2039
2040
2041 func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) {
2042 if h, ok := t.(tHelper); ok {
2043 h.Helper()
2044 }
2045 if assert.Zero(t, i, msgAndArgs...) {
2046 return
2047 }
2048 t.FailNow()
2049 }
2050
2051
2052 func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) {
2053 if h, ok := t.(tHelper); ok {
2054 h.Helper()
2055 }
2056 if assert.Zerof(t, i, msg, args...) {
2057 return
2058 }
2059 t.FailNow()
2060 }
2061
View as plain text