MCPcopy Index your code
hub / github.com/expr-lang/expr / TestZero

Function TestZero

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

Source from the content-addressed store, hash-verified

2019}
2020
2021func TestZero(t *testing.T) {
2022 mockT := new(testing.T)
2023
2024 for _, test := range zeros {
2025 True(t, Zero(mockT, test, "%#v is not the %v zero value", test, reflect.TypeOf(test)))
2026 }
2027
2028 for _, test := range nonZeros {
2029 False(t, Zero(mockT, test, "%#v is not the %v zero value", test, reflect.TypeOf(test)))
2030 }
2031}
2032
2033func TestNotZero(t *testing.T) {
2034 mockT := new(testing.T)

Callers

nothing calls this directly

Calls 3

TrueFunction · 0.70
ZeroFunction · 0.70
FalseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…