(t *testing.T)
| 2399 | } |
| 2400 | |
| 2401 | func TestDiffEmptyCases(t *testing.T) { |
| 2402 | Equal(t, "", diff(nil, nil)) |
| 2403 | Equal(t, "", diff(struct{ foo string }{}, nil)) |
| 2404 | Equal(t, "", diff(nil, struct{ foo string }{})) |
| 2405 | Equal(t, "", diff(1, 2)) |
| 2406 | Equal(t, "", diff(1, 2)) |
| 2407 | Equal(t, "", diff([]int{1}, []bool{true})) |
| 2408 | } |
| 2409 | |
| 2410 | // Ensure there are no data races |
| 2411 | func TestDiffRace(t *testing.T) { |