(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestLazyWithErrorOK(t *testing.T) { |
| 13 | t.Parallel() |
| 14 | |
| 15 | l := lazy.NewWithError(func() (int, error) { |
| 16 | return 1, nil |
| 17 | }) |
| 18 | |
| 19 | i, err := l.Load() |
| 20 | require.NoError(t, err) |
| 21 | require.Equal(t, 1, i) |
| 22 | } |
| 23 | |
| 24 | func TestLazyWithErrorErr(t *testing.T) { |
| 25 | t.Parallel() |
nothing calls this directly
no test coverage detected