MCPcopy Index your code
hub / github.com/coder/slog / Diff

Function Diff

internal/assert/assert.go:13–18  ·  view source on GitHub ↗

Diff returns a diff between exp and act.

(exp, act interface{}, opts ...cmp.Option)

Source from the content-addressed store, hash-verified

11
12// Diff returns a diff between exp and act.
13func 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.
21func Equal(t testing.TB, name string, exp, act interface{}) {

Callers 2

EqualFunction · 0.92
EqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected