TestCustomDeepDiff is equivalent to TestCustomDeepEqual except it also prints a diff.
(value, expect interface{}, c compare.Custom)
| 248 | // TestCustomDeepDiff is equivalent to TestCustomDeepEqual except it also prints |
| 249 | // a diff. |
| 250 | func (a *Assertion) TestCustomDeepDiff(value, expect interface{}, c compare.Custom) bool { |
| 251 | diff := c.Diff(value, expect, 10) |
| 252 | if len(diff) == 0 { |
| 253 | return true |
| 254 | } |
| 255 | for _, diff := range diff { |
| 256 | a.Println(diff) |
| 257 | } |
| 258 | a.Commit() |
| 259 | return false |
| 260 | } |
| 261 | |
| 262 | // Commit writes the output lines to the main output object. |
| 263 | func (a Assertion) Commit() { |
no test coverage detected