RequireXattrNotFoundError asserts that the given error represents an xattr not found error.
(t testing.TB, e error)
| 778 | |
| 779 | // RequireXattrNotFoundError asserts that the given error represents an xattr not found error. |
| 780 | func RequireXattrNotFoundError(t testing.TB, e error) { |
| 781 | require.True(t, IsXattrNotFoundError(e), fmt.Sprintf("Expected error to be an xattr not found error, but was: %v", e)) |
| 782 | } |
| 783 | |
| 784 | func requireCasMismatchError(t testing.TB, err error) { |
| 785 | require.Error(t, err, "Expected an error of type IsCasMismatch %+v\n", err) |