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

Function Test_validateEqualArgs

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

Source from the content-addressed store, hash-verified

3581}
3582
3583func Test_validateEqualArgs(t *testing.T) {
3584 t.Parallel()
3585
3586 if validateEqualArgs(func() {}, func() {}) == nil {
3587 t.Error("non-nil functions should error")
3588 }
3589
3590 if validateEqualArgs(func() {}, func() {}) == nil {
3591 t.Error("non-nil functions should error")
3592 }
3593
3594 if validateEqualArgs(nil, nil) != nil {
3595 t.Error("nil functions are equal")
3596 }
3597}
3598
3599func Test_truncatingFormat(t *testing.T) {
3600 t.Parallel()

Callers

nothing calls this directly

Calls 2

validateEqualArgsFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…