| 1 | package assertscip-go gomod github.com/tj/assert . `github.com/tj/assert`/ |
| 2 | |
| 3 | import ( |
| 4 | "errorsscip-go gomod github.com/golang/go/src go1.14 errors/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.14 testing/" |
| 6 | "timescip-go gomod github.com/golang/go/src go1.14 time/" |
| 7 | ) |
| 8 | |
| 9 | func TestImplementsWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestImplementsWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 10 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 11 | |
| 12 | require.Implementsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Implements().((*AssertionTesterInterfacescip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterInterface#)(nil), new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#)) |
| 13 | |
| 14 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 15 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 16 | mockRequire.Implementsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Implements().((*AssertionTesterInterfacescip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterInterface#)(nil), new(AssertionTesterNonConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterNonConformingObject#)) |
| 17 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 18 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestIsTypeWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestIsTypeWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 23 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 24 | require.IsTypescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#IsType().(new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#), new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#)) |
| 25 | |
| 26 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 27 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 28 | mockRequire.IsTypescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#IsType().(new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#), new(AssertionTesterNonConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterNonConformingObject#)) |
| 29 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 30 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func TestEqualWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestEqualWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 35 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 36 | require.Equalscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Equal().(1, 1) |
| 37 | |
| 38 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 39 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 40 | mockRequire.Equalscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Equal().(1, 2) |
| 41 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 42 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func TestNotEqualWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotEqualWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 47 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 48 | require.NotEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotEqual().(1, 2) |
| 49 | |
| 50 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 51 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 52 | mockRequire.NotEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotEqual().(2, 2) |
| 53 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 54 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func TestExactlyWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestExactlyWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 59 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 60 | |
| 61 | a := float32(1) |
| 62 | b := float32(1) |
| 63 | c := float64(1) |
| 64 | |
| 65 | require.Exactlyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Exactly().(a, b) |
| 66 | |
| 67 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 68 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 69 | mockRequire.Exactlyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Exactly().(a, c) |
| 70 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 71 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func TestNotNilWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotNilWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 76 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 77 | require.NotNilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotNil().(t, new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#)) |
| 78 | |
| 79 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 80 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 81 | mockRequire.NotNilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotNil().(nil) |
| 82 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 83 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestNilWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNilWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 88 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 89 | require.Nilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Nil().(nil) |
| 90 | |
| 91 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 92 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 93 | mockRequire.Nilscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Nil().(new(AssertionTesterConformingObjectscip-go gomod github.com/tj/assert . `github.com/tj/assert`/AssertionTesterConformingObject#)) |
| 94 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 95 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func TestTrueWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestTrueWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 100 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 101 | require.Truescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#True().(true) |
| 102 | |
| 103 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 104 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 105 | mockRequire.Truescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#True().(false) |
| 106 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 107 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestFalseWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestFalseWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 112 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 113 | require.Falsescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#False().(false) |
| 114 | |
| 115 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 116 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 117 | mockRequire.Falsescip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#False().(true) |
| 118 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 119 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func TestContainsWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestContainsWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 124 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 125 | require.Containsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Contains().("Hello World", "Hello") |
| 126 | |
| 127 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 128 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 129 | mockRequire.Containsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Contains().("Hello World", "Salut") |
| 130 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 131 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func TestNotContainsWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotContainsWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 136 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 137 | require.NotContainsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotContains().("Hello World", "Hello!") |
| 138 | |
| 139 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 140 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 141 | mockRequire.NotContainsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotContains().("Hello World", "Hello") |
| 142 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 143 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | func TestPanicsWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestPanicsWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 148 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 149 | require.Panicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Panics().(func() { |
| 150 | panic("Panic!") |
| 151 | }) |
| 152 | |
| 153 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 154 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 155 | mockRequire.Panicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Panics().(func() {}) |
| 156 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 157 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | func TestNotPanicsWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotPanicsWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 162 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 163 | require.NotPanicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotPanics().(func() {}) |
| 164 | |
| 165 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 166 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 167 | mockRequire.NotPanicsscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotPanics().(func() { |
| 168 | panic("Panic!") |
| 169 | }) |
| 170 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 171 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func TestNoErrorWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNoErrorWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 176 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 177 | require.NoErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NoError().(nil) |
| 178 | |
| 179 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 180 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 181 | mockRequire.NoErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NoError().(errorsscip-go gomod github.com/golang/go/src go1.14 errors/.Newscip-go gomod github.com/golang/go/src go1.14 errors/New().("some error")) |
| 182 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 183 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | func TestErrorWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestErrorWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 188 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 189 | require.Errorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Error().(errorsscip-go gomod github.com/golang/go/src go1.14 errors/.Newscip-go gomod github.com/golang/go/src go1.14 errors/New().("some error")) |
| 190 | |
| 191 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 192 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 193 | mockRequire.Errorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Error().(nil) |
| 194 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 195 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func TestEqualErrorWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestEqualErrorWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 200 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 201 | require.EqualErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#EqualError().(errorsscip-go gomod github.com/golang/go/src go1.14 errors/.Newscip-go gomod github.com/golang/go/src go1.14 errors/New().("some error"), "some error") |
| 202 | |
| 203 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 204 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 205 | mockRequire.EqualErrorscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#EqualError().(errorsscip-go gomod github.com/golang/go/src go1.14 errors/.Newscip-go gomod github.com/golang/go/src go1.14 errors/New().("some error"), "Not some error") |
| 206 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 207 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func TestEmptyWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestEmptyWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 212 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 213 | require.Emptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Empty().("") |
| 214 | |
| 215 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 216 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 217 | mockRequire.Emptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Empty().("x") |
| 218 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 219 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | func TestNotEmptyWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotEmptyWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 224 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 225 | require.NotEmptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotEmpty().("x") |
| 226 | |
| 227 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 228 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 229 | mockRequire.NotEmptyscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotEmpty().("") |
| 230 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 231 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | func TestWithinDurationWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestWithinDurationWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 236 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 237 | a := timescip-go gomod github.com/golang/go/src go1.14 time/.Nowscip-go gomod github.com/golang/go/src go1.14 time/Now().() |
| 238 | b := a.Addscip-go gomod github.com/golang/go/src go1.14 time/Time#Add().(10 * timescip-go gomod github.com/golang/go/src go1.14 time/.Secondscip-go gomod github.com/golang/go/src go1.14 time/Second.) |
| 239 | |
| 240 | require.WithinDurationscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#WithinDuration().(a, b, 15*timescip-go gomod github.com/golang/go/src go1.14 time/.Secondscip-go gomod github.com/golang/go/src go1.14 time/Second.) |
| 241 | |
| 242 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 243 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 244 | mockRequire.WithinDurationscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#WithinDuration().(a, b, 5*timescip-go gomod github.com/golang/go/src go1.14 time/.Secondscip-go gomod github.com/golang/go/src go1.14 time/Second.) |
| 245 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 246 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | func TestInDeltaWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestInDeltaWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 251 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 252 | require.InDeltascip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#InDelta().(1.001, 1, 0.01) |
| 253 | |
| 254 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 255 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 256 | mockRequire.InDeltascip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#InDelta().(1, 2, 0.5) |
| 257 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 258 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | func TestZeroWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestZeroWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 263 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 264 | require.Zeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Zero().(0) |
| 265 | |
| 266 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 267 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 268 | mockRequire.Zeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#Zero().(1) |
| 269 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 270 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | func TestNotZeroWrapperscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestNotZeroWrapper().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 275 | require := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(t) |
| 276 | require.NotZeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotZero().(1) |
| 277 | |
| 278 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 279 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 280 | mockRequire.NotZeroscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#NotZero().(0) |
| 281 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 282 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | func TestJSONEqWrapper_EqualSONStringscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_EqualSONString().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 287 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 288 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 289 | |
| 290 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`{"hello": "world", "foo": "bar"}`, `{"hello": "world", "foo": "bar"}`) |
| 291 | if mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 292 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should pass") |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | func TestJSONEqWrapper_EquivalentButNotEqualscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_EquivalentButNotEqual().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 297 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 298 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 299 | |
| 300 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`) |
| 301 | if mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 302 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should pass") |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | func TestJSONEqWrapper_HashOfArraysAndHashesscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_HashOfArraysAndHashes().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 307 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 308 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 309 | |
| 310 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().("{\r\n\t\"numeric\": 1.5,\r\n\t\"array\": [{\"foo\": \"bar\"}, 1, \"string\", [\"nested\", \"array\", 5.5]],\r\n\t\"hash\": {\"nested\": \"hash\", \"nested_slice\": [\"this\", \"is\", \"nested\"]},\r\n\t\"string\": \"foo\"\r\n}", |
| 311 | "{\r\n\t\"numeric\": 1.5,\r\n\t\"hash\": {\"nested\": \"hash\", \"nested_slice\": [\"this\", \"is\", \"nested\"]},\r\n\t\"string\": \"foo\",\r\n\t\"array\": [{\"foo\": \"bar\"}, 1, \"string\", [\"nested\", \"array\", 5.5]]\r\n}") |
| 312 | if mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 313 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should pass") |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | func TestJSONEqWrapper_Arrayscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_Array().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 318 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 319 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 320 | |
| 321 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`["foo", {"hello": "world", "nested": "hash"}]`, `["foo", {"nested": "hash", "hello": "world"}]`) |
| 322 | if mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 323 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should pass") |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | func TestJSONEqWrapper_HashAndArrayNotEquivalentscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_HashAndArrayNotEquivalent().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 328 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 329 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 330 | |
| 331 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`["foo", {"hello": "world", "nested": "hash"}]`, `{"foo": "bar", {"nested": "hash", "hello": "world"}}`) |
| 332 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 333 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | func TestJSONEqWrapper_HashesNotEquivalentscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_HashesNotEquivalent().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 338 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 339 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 340 | |
| 341 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`{"foo": "bar"}`, `{"foo": "bar", "hello": "world"}`) |
| 342 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 343 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | func TestJSONEqWrapper_ActualIsNotJSONscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_ActualIsNotJSON().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 348 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 349 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 350 | |
| 351 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`{"foo": "bar"}`, "Not JSON") |
| 352 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 353 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | func TestJSONEqWrapper_ExpectedIsNotJSONscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_ExpectedIsNotJSON().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 358 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 359 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 360 | |
| 361 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().("Not JSON", `{"foo": "bar", "hello": "world"}`) |
| 362 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 363 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | func TestJSONEqWrapper_ExpectedAndActualNotJSONscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_ExpectedAndActualNotJSON().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 368 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 369 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 370 | |
| 371 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().("Not JSON", "Not JSON") |
| 372 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 373 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | func TestJSONEqWrapper_ArraysOfDifferentOrderscip-go gomod github.com/tj/assert . `github.com/tj/assert`/TestJSONEqWrapper_ArraysOfDifferentOrder().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { |
| 378 | mockT := new(MockTscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#) |
| 379 | mockRequire := Newscip-go gomod github.com/tj/assert . `github.com/tj/assert`/New().(mockT) |
| 380 | |
| 381 | mockRequire.JSONEqscip-go gomod github.com/tj/assert . `github.com/tj/assert`/Assertions#JSONEq().(`["foo", {"hello": "world", "nested": "hash"}]`, `[{ "hello": "world", "nested": "hash"}, "foo"]`) |
| 382 | if !mockT.Failedscip-go gomod github.com/tj/assert . `github.com/tj/assert`/MockT#Failed. { |
| 383 | t.Errorscip-go gomod github.com/golang/go/src go1.14 testing/common#Error().("Check should fail") |
| 384 | } |
| 385 | } |