(t *testing.T)
| 2996 | } |
| 2997 | |
| 2998 | func TestDiffEmptyCases(t *testing.T) { |
| 2999 | t.Parallel() |
| 3000 | |
| 3001 | Equal(t, "", diff(nil, nil)) |
| 3002 | Equal(t, "", diff(struct{ foo string }{}, nil)) |
| 3003 | Equal(t, "", diff(nil, struct{ foo string }{})) |
| 3004 | Equal(t, "", diff(1, 2)) |
| 3005 | Equal(t, "", diff(1, 2)) |
| 3006 | Equal(t, "", diff([]int{1}, []bool{true})) |
| 3007 | } |
| 3008 | |
| 3009 | // Ensure there are no data races |
| 3010 | func TestDiffRace(t *testing.T) { |