MCPcopy Create free account
hub / github.com/google/gapid / TestCustomDeepDiff

Method TestCustomDeepDiff

core/assert/assertion.go:250–260  ·  view source on GitHub ↗

TestCustomDeepDiff is equivalent to TestCustomDeepEqual except it also prints a diff.

(value, expect interface{}, c compare.Custom)

Source from the content-addressed store, hash-verified

248// TestCustomDeepDiff is equivalent to TestCustomDeepEqual except it also prints
249// a diff.
250func (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.
263func (a Assertion) Commit() {

Callers 1

CustomDeepEqualsMethod · 0.80

Calls 3

PrintlnMethod · 0.95
CommitMethod · 0.95
DiffMethod · 0.45

Tested by

no test coverage detected