MCPcopy
hub / github.com/stretchr/testify / TestDiffEmptyCases

Function TestDiffEmptyCases

assert/assertions_test.go:2998–3007  ·  assert/assertions_test.go::TestDiffEmptyCases
(t *testing.T)

Source from the content-addressed store, hash-verified

2996}
2997
2998func 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
3010func TestDiffRace(t *testing.T) {

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected