Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gtest pretty printer for Timestamp (facebookincubator#9932)
Summary: Pull Request resolved: facebookincubator#9932 Adding pretty printer function to make gtest equality comparison fail with a legible error message. Before: ``` Expected equality of these values: Timestamp(0, 0) Which is: 16-byte object <00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00> dateTrunc("hour", Timestamp(1667725199 ,0)) Which is: (16-byte object <80-69 67-63 00-00 00-00 00-00 00-00 00-00 00-00>) ``` After ``` Expected equality of these values: Timestamp(0, 0) Which is: sec: 0, ns: 0 dateTrunc("hour", Timestamp(1667725199 ,0)) Which is: (sec: 1667721600, ns: 0) ``` Reviewed By: mbasmanova Differential Revision: D57805196 fbshipit-source-id: aef3b690155adacf9fa5bdae6003b163911a8e6c
- Loading branch information