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

Function Benchmark_isEmpty

assert/assertions_test.go:1857–1868  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1855}
1856
1857func Benchmark_isEmpty(b *testing.B) {
1858 b.ReportAllocs()
1859
1860 v := new(int)
1861 b.ResetTimer()
1862
1863 for i := 0; i < b.N; i++ {
1864 isEmpty("")
1865 isEmpty(42)
1866 isEmpty(v)
1867 }
1868}
1869
1870func TestEmpty(t *testing.T) {
1871 t.Parallel()

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.85

Tested by

no test coverage detected