Skip to content

CPP: Add test coverage for LeapYearFieldAccess.isModifiedByArithmeticOperation. #1594

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
Aug 9, 2019

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Jul 15, 2019

Add test coverage for LeapYearFieldAccess.isModifiedByArithmeticOperation(), which previously could be replaced by any() without causing any test failures. I've also convinced myself that my concerns at #1354 (comment) (never replied to) were unfounded.

@geoffw0 geoffw0 added the C++ label Jul 15, 2019
@geoffw0 geoffw0 requested a review from a team as a code owner July 15, 2019 18:50
…whether the return value of the time conversion function is checked.
@geoffw0
Copy link
Contributor Author

geoffw0 commented Jul 16, 2019

I've added another test showing that Adding365daysPerYear.ql doesn't quite work as advertised re: requiring the time conversion function being unchecked. I'm inclined not to worry about fixing this unless/until we see false positives in the wild, as currently the query does not produce many results total so FPs will be very rare.

@jbj jbj merged commit b348803 into github:master Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants