(t *testing.T)
| 343 | } |
| 344 | |
| 345 | func 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 | |
| 360 | func TestStrings(t *testing.T) { |
| 361 | assert := assert.To(t) |
nothing calls this directly
no test coverage detected