Diff returns a diff between exp and act.
(exp, act interface{}, opts ...cmp.Option)
| 11 | |
| 12 | // Diff returns a diff between exp and act. |
| 13 | func Diff(exp, act interface{}, opts ...cmp.Option) string { |
| 14 | opts = append(opts, cmpopts.EquateErrors(), cmp.Exporter(func(r reflect.Type) bool { |
| 15 | return true |
| 16 | })) |
| 17 | return cmp.Diff(exp, act, opts...) |
| 18 | } |
| 19 | |
| 20 | // Equal asserts exp == act. |
| 21 | func Equal(t testing.TB, name string, exp, act interface{}) { |