(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestError_NotFound(t *testing.T) { |
| 13 | tests := []struct { |
| 14 | err error |
| 15 | expVal bool |
| 16 | }{ |
| 17 | {err: os.ErrNotExist, expVal: true}, |
| 18 | {err: os.ErrClosed, expVal: false}, |
| 19 | } |
| 20 | for _, test := range tests { |
| 21 | t.Run("", func(t *testing.T) { |
| 22 | assert.Equal(t, test.expVal, errutil.IsNotFound(NewError(test.err))) |
| 23 | }) |
| 24 | } |
| 25 | } |
nothing calls this directly
no test coverage detected