MCPcopy
hub / github.com/expr-lang/expr / TestDiffEmptyCases

Function TestDiffEmptyCases

internal/testify/assert/assertions_test.go:2401–2408  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2399}
2400
2401func TestDiffEmptyCases(t *testing.T) {
2402 Equal(t, "", diff(nil, nil))
2403 Equal(t, "", diff(struct{ foo string }{}, nil))
2404 Equal(t, "", diff(nil, struct{ foo string }{}))
2405 Equal(t, "", diff(1, 2))
2406 Equal(t, "", diff(1, 2))
2407 Equal(t, "", diff([]int{1}, []bool{true}))
2408}
2409
2410// Ensure there are no data races
2411func TestDiffRace(t *testing.T) {

Callers

nothing calls this directly

Calls 2

diffFunction · 0.85
EqualFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…