Bo Sunesen
a5830c56d3
Extract method to evaluate closest match
2021-01-13 20:54:11 +11:00
Bo Sunesen
1962448488
Use Repeatability as tie-breaker for closest match
2021-01-13 20:54:11 +11:00
Acho Arnold
92707c0b2d
Fixed the link to not point to assert only
2020-11-03 21:39:35 +11:00
Acho Arnold
05dd0b2b35
Updated the readme to point to pkg.dev
2020-11-03 21:39:35 +11:00
Graham Jenson
c26b7f39f8
Update assertions.go
...
lower to 10
2020-11-03 21:38:56 +11:00
Graham Jenson
8fb4b2442e
[Fix] The most recent changes to golang/protobuf breaks the spew Circular data structure detection
...
The latest update to golang/protobuf (I am on v1.4.2) break the spew circular data structure detection. This means that when calling `assert.Equal(t, proto1, proto2)` will not only fail, but also enter an infinite recursion.
Given spew is not being actively maintained, and tesitfy should set some upper bound, we need to set a `MaxDepth` to some very high number, so at least the test will not run for a very long time and finish and fail quickly.
2020-11-03 21:38:56 +11:00
Masaya Hayashi
dc8af7208c
add generated code for positive/negative assertion
2020-11-03 21:37:46 +11:00
Masaya Hayashi
1544508911
add assert positive/negative
2020-11-03 21:37:46 +11:00
RyuseiNomi
54d05a4e18
modify function name and docstrings
2020-08-18 21:58:29 +10:00
RyuseiNomi
44accac0f5
revise test case name of example of mock section
2020-08-18 21:58:29 +10:00
alexpantyukhin
cf221cc875
add tests and fix message
2020-08-14 20:45:51 +10:00
alexpantyukhin
c74c0d3a7f
add fnctions into requres
2020-08-14 20:45:51 +10:00
alexpantyukhin
a9284e66a9
add assertion order
2020-08-14 20:45:51 +10:00
Martijn
a3bed97cf3
assert: s/rune/r/ to avoid "rune" predeclared ident shadowing #642
...
Thanks @quasllyte
2020-08-03 19:54:30 +10:00
Boyan
ed4976c764
Revert "Fix PR comments"
...
This reverts commit 1ebd9c5791
.
2020-07-27 22:28:46 +10:00
arseny
b09b5a43a5
Fix go mod
2020-07-27 21:16:21 +10:00
arseny
415d89281b
Fix time.Time not equals bug
...
Adding test
2020-07-27 21:16:21 +10:00
arseny
1ebd9c5791
Fix PR comments
2020-07-27 21:16:21 +10:00
Pal Sivertsen
6a6c303c3c
Change Readme to reflect supported go versions
2020-07-20 20:40:44 +10:00
Pal Sivertsen
95a9d909e9
Add wrapper functions for errors Is and As funcs
...
This commit adds wrapper functions for Is and As functions from the
errors package.
2020-07-20 20:40:44 +10:00
Boyan Soubachov
38a7ed3d85
Added testify v2 feedback form link
2020-07-17 08:11:02 +10:00
Boyan Soubachov
404e6fa1be
Added link for testify v2 survey
2020-07-17 08:10:04 +10:00
Boyan
87a988cffb
Remove Go 1.10 from Travis builds
2020-06-28 22:12:10 +10:00
Torkel Rogstad
51595dcf94
Allow comparing custom comparable types
...
Prior to this commit, this would not work:
```go
type myInt int
assert.Less(t, myInt(1), myInt(2)) // panic!
```
We add some type conversions, similarly to how `ObjectsAreEqualValues`
work. This allows us to compare `myInt` to `myInt`, as well as `myInt`
to `int`.
2020-06-22 19:40:53 +10:00
Ivo van der Wijk
b8f7d52a4a
Rewrite test loops into individual test cases
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
8a501b0fac
make testcase definition local
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
4bbffeac6c
table-ify TestElementsMatch
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
52b38ca424
table-ify, refactor (Not)Subset()
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
0929293466
refactor, table-ify TestContains / TestNotContains
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
67a4d91853
table-ify ObjectsAreEqual()
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
5717c498e9
table-ify Equal()
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
408bc6703a
keep type definition local to function where used
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
590942c47f
table-ify Exactly
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
9ffb85bbec
clarify sets of tests
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
51b7cfe385
rewrite NotEqual() tests to table tests
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
07d1e00890
first attempt at table-ifying NotEqualValues tests
2020-06-13 21:33:52 +10:00
Ivo van der Wijk
f50e178a9f
first attempt at table-ifying NotEqualValues tests
2020-06-13 21:33:52 +10:00
Boyan
f654a9112b
Update Go versions in Travis
...
* Updated the versions of Go we run on to reflect our support protocol
2020-06-05 20:48:45 +10:00
Boyan
3184a9e141
This reverts commit 0a813b5898
.
2020-06-05 20:47:15 +10:00
Boyan
e2b269ecc5
This reverts commit 2adb7b54b7
.
2020-06-05 20:47:15 +10:00
Boyan
6353e56395
This reverts commit 9d083cac4a
.
2020-06-05 20:47:15 +10:00
Boyan
656132404a
This reverts commit 484fff1ace
.
2020-06-05 20:47:15 +10:00
Boyan
46420cf544
This reverts commit 1a43b8334a
.
2020-06-05 20:47:15 +10:00
Boyan
303198d014
Revert "allow body for HTTPBodyContains and HTTPBodyNotContains for
...
POST" PR #938
This reverts commit 136026fb25
.
2020-06-05 20:47:15 +10:00
Boyan
e7cc868148
Update TravisCI config
2020-06-01 20:09:00 +10:00
Ivo van der Wijk
004e3cb722
commit generated files
2020-05-27 08:39:56 +10:00
Ivo van der Wijk
ac1463f956
Implement NotEqualValues
2020-05-27 08:39:56 +10:00
Matt Gorzka
e72b029e2a
new regex
2020-05-14 20:01:26 +10:00
zjx158094
d4e7ca1687
address comments
2020-05-14 19:53:33 +10:00
zjx158094
8329c5daa7
add test
2020-05-14 19:53:33 +10:00