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

Function TestDiff

core/data/compare/compare_test.go:334–343  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

332}
333
334func TestDiff(t *testing.T) {
335 assert := assert.To(t)
336 for _, test := range compareTests {
337 if len(test.diff) > 0 && len(test.diff[0]) == 0 {
338 continue
339 }
340 got := compare.Diff(test.a, test.b, len(test.diff)+2)
341 assert.For(test.name).ThatSlice(got).DeepEquals(test.diff)
342 }
343}
344
345func TestDiffLimit(t *testing.T) {
346 assert := assert.To(t)

Callers

nothing calls this directly

Calls 4

ThatSliceMethod · 0.80
ForMethod · 0.80
DiffMethod · 0.45
DeepEqualsMethod · 0.45

Tested by

no test coverage detected