(b *testing.B)
| 1855 | } |
| 1856 | |
| 1857 | func 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 | |
| 1870 | func TestEmpty(t *testing.T) { |
| 1871 | t.Parallel() |