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

Function TestDiffLimit

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

Source from the content-addressed store, hash-verified

343}
344
345func TestDiffLimit(t *testing.T) {
346 assert := assert.To(t)
347 for _, test := range compareTests {
348 got := compare.Diff(test.a, test.b, 1)
349 expect := test.diff
350 if len(expect) > 0 {
351 expect = expect[:1]
352 if len(expect[0]) == 0 {
353 continue
354 }
355 }
356 assert.For(test.name).ThatSlice(got).DeepEquals(expect)
357 }
358}
359
360func TestStrings(t *testing.T) {
361 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