Skip to content

Added tests to cover red lines in coverage report #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Oct 4, 2021

Caught few bugs and fixed them in the process as a perk.

Improved validation for the routine computing strides of
the new reshaped array for a view, or None if view is not possible.

This fixes an exception raised for

```
X = dpt.usm_ndarray((1,), "i4")
X.shape = (1,)  # used to raise, not works as expected
```
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the improve_copy_utils_coverage branch from a13a1fb to 346392e Compare October 4, 2021 22:17
@coveralls
Copy link
Collaborator

coveralls commented Oct 4, 2021

Coverage Status

Coverage increased (+0.2%) to 74.447% when pulling 2315489 on improve_copy_utils_coverage into 42c25df on master.

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the improve_copy_utils_coverage branch from 90d1e90 to 2315489 Compare October 4, 2021 22:58
@oleksandr-pavlyk oleksandr-pavlyk merged commit d469c84 into master Oct 4, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the improve_copy_utils_coverage branch October 4, 2021 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants