Olivier Mengué
f8f5e6bd38
assert: make *AssertionFunc type just aliases
...
We don't need to define "hard" types for *AssertionFunc types as we
don't attach methods to them. Also, making them just type aliases will
give more flexibility to users of our API.
So ComparisonAssertionFunc and other *AssertionFunc types are now just
type aliases.
2024-03-04 18:52:18 +01:00
Leigh McCulloch
7c5ac23b81
Make _codegen its own module so that its dependencies do not pollute the root modules dependency graph
2019-12-09 10:12:49 -07:00
Renato
282608cc76
update comment to match function name
2018-10-13 18:00:28 -06:00
Cory Bennett
c679ae2cc0
add function aliases for common assert and requires function signatures to make table driven tests easier
2018-03-19 22:34:59 +00:00
Ernesto Jiménez
a726187e31
Fix vim-go integration and other editors
...
Use Go 1.9 t.Helper() to remove testify from the output of the tests and
stop using `\r` to try to overwrite the output.
This means in Go 1.7 and Go 1.8 testify will appear as failing the test.
2018-02-02 18:39:40 +00:00
Ernesto Jiménez
c7668ea997
Fixes #339 - Add `assertion`f assertions like Errorf and Equalf
2017-05-29 12:56:43 +01:00
Ernesto Jiménez
1661650f98
Fix most golint warnings
2016-01-09 19:30:22 +01:00
Ernesto Jiménez
efd1b850c1
First version of code generation
2015-11-05 23:08:36 +00:00
Ernesto Jiménez
0d5a14c5a4
Fix #117 : Update require.Contains docs
2015-11-02 02:08:28 +00:00
Julian Cooper
2d0c0a478c
JSONEq unmarshal's into an interface{} instead of attemping Map and Slice unmarshallings
2015-10-13 14:13:42 -07:00
Julian Cooper
930ea90dbd
Added assertion/requirement that checks if two JSON strings represent equivalent objects
2015-09-23 10:34:52 -07:00
Will Faught
8512261d41
Add Zero and NotZero assertions and requirements
...
Zero returns true if the value equals the value's type's zero value.
NotZero returns the opposite of Zero.
2015-08-24 15:53:36 -07:00
Paul Querna
e73f5c7e39
Add assert.EqualValues, which attempts to convert types to test equality. Fixes #129
2015-02-10 16:56:43 -08:00
Samuel Nelson
ff9ded0d23
Fixed regexp messages. Resolves #120 .
2015-01-19 12:45:07 -07:00
Andreas Garnæs
ecf599d7db
Update require package to match assert package.
2015-01-06 16:38:10 +00:00
Andreas Garnæs
8033b5cf75
Remove false documentation.
2015-01-06 16:37:26 +00:00
Anatoly Scheglov
f6376e8a31
add the 'require' package
2014-07-16 17:30:01 +04:00