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

Method TestDeepDiff

core/assert/assertion.go:236–246  ·  view source on GitHub ↗

TestDeepDiff is equivalent to TestDeepEqual except it also prints a diff.

(value, expect interface{})

Source from the content-addressed store, hash-verified

234
235// TestDeepDiff is equivalent to TestDeepEqual except it also prints a diff.
236func (a *Assertion) TestDeepDiff(value, expect interface{}) bool {
237 diff := compare.Diff(value, expect, 10)
238 if len(diff) == 0 {
239 return true
240 }
241 for _, diff := range diff {
242 a.Println(diff)
243 }
244 a.Commit()
245 return false
246}
247
248// TestCustomDeepDiff is equivalent to TestCustomDeepEqual except it also prints
249// a diff.

Callers 1

DeepEqualsMethod · 0.80

Calls 3

PrintlnMethod · 0.95
CommitMethod · 0.95
DiffMethod · 0.45

Tested by

no test coverage detected