MCPcopy Create free account
hub / github.com/stretchr/testify / TestDiffEmptyCases

Function TestDiffEmptyCases

assert/assertions_test.go:2605–2612  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2603}
2604
2605func TestDiffEmptyCases(t *testing.T) {
2606 Equal(t, "", diff(nil, nil))
2607 Equal(t, "", diff(struct{ foo string }{}, nil))
2608 Equal(t, "", diff(nil, struct{ foo string }{}))
2609 Equal(t, "", diff(1, 2))
2610 Equal(t, "", diff(1, 2))
2611 Equal(t, "", diff([]int{1}, []bool{true}))
2612}
2613
2614// Ensure there are no data races
2615func TestDiffRace(t *testing.T) {

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected