This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: complete test coverage for g:c:spanner::Timestamp (#1190)
* Add test cases for some previously unexercised code paths * Remove one always-unreachable overflow-detection code path * Another overflow-detection code path is unreachable when tm_year is only 32-bits (which is usually the case), so we can't hit 100% coverage * Fix one bug with creating a `Timestamp` from a `time_point` with sub-nanosecond precision, and add test case.
- Loading branch information
Showing
2 changed files
with
151 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters