mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-11 10:07:53 +00:00
Match() returned the unmarshal error for input that is simply not json.
Gomega treats a non nil error as a failure to evaluate, so it fails the
assertion either way and ToNot(BeValidJSON()) fails on exactly the input
it is meant to accept:
Expect("{not json").ToNot(BeValidJSON())
--> invalid character 'n' looking for beginning of object key string
A non match is (false, nil), the error return is for input the matcher
cannot evaluate, which is the wrong type case above it.
Signed-off-by: Tushar Verma <tusharmyself06@gmail.com>
|
||
|---|---|---|
| .. | ||
| common_function_test.go | ||
| matchers.go | ||
| podmansession_test.go | ||
| podmantest_test.go | ||
| utils.go | ||
| utils_suite_test.go | ||