File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
assert/cmd/gty-migrate-from-testify/testdata Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,13 @@ func TestTableTest(t *testing.T) {
134
134
}
135
135
}
136
136
137
- func TestWithChecker (c * check.C ) {
137
+ type MySuite struct {}
138
+
139
+ var _ = check .Suite (& MySuite {})
140
+
141
+ func (s * MySuite ) TestWithChecker (c * check.C ) {
138
142
var err error
139
- assert . Check ( c , err )
143
+ c . Assert ( err , check . Equals , nil )
140
144
}
141
145
142
146
func HelperWithAssertTestingT (t assert.TestingT ) {
Original file line number Diff line number Diff line change @@ -135,9 +135,13 @@ func TestTableTest(t *testing.T) {
135
135
}
136
136
}
137
137
138
- func TestWithChecker (c * check.C ) {
138
+ type MySuite struct {}
139
+
140
+ var _ = check .Suite (& MySuite {})
141
+
142
+ func (s * MySuite ) TestWithChecker (c * check.C ) {
139
143
var err error
140
- assert . NoError ( c , err )
144
+ c . Assert ( err , check . Equals , nil )
141
145
}
142
146
143
147
func HelperWithAssertTestingT (t assert.TestingT ) {
You can’t perform that action at this time.
0 commit comments