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

Method DeepEquals

core/assert/map.go:65–67  ·  view source on GitHub ↗

DeepEquals asserts the array or map matches expected using a deep-equal comparison.

(expected interface{})

Source from the content-addressed store, hash-verified

63
64// DeepEquals asserts the array or map matches expected using a deep-equal comparison.
65func (o OnMap) DeepEquals(expected interface{}) bool {
66 return o.mapsEqual(expected, compare.DeepEqual)
67}
68
69func (o OnMap) mapsEqual(expected interface{}, same func(a, b interface{}) bool) bool {
70 return o.Test(func() bool {

Callers 15

TestParseDevicesFunction · 0.45
TestParsePackagesFunction · 0.45
TestParseManifestFunction · 0.45
TestHostConcurrentFunction · 0.45
TestReadConfigurationFunction · 0.45
TestSortFunction · 0.45
TestReplaceFunction · 0.45
TestRemoveFunction · 0.45
TestRemoveAtFunction · 0.45
TestInsertBeforeFunction · 0.45
TestAppendFunction · 0.45
TestReverseFunction · 0.45

Calls 1

mapsEqualMethod · 0.95

Tested by 15

TestParseDevicesFunction · 0.36
TestParsePackagesFunction · 0.36
TestParseManifestFunction · 0.36
TestHostConcurrentFunction · 0.36
TestReadConfigurationFunction · 0.36
TestSortFunction · 0.36
TestReplaceFunction · 0.36
TestRemoveFunction · 0.36
TestRemoveAtFunction · 0.36
TestInsertBeforeFunction · 0.36
TestAppendFunction · 0.36
TestReverseFunction · 0.36