truncateMicro rounds time to microsecond precision to match SQLite storage
(t time.Time)
| 34 | |
| 35 | // truncateMicro rounds time to microsecond precision to match SQLite storage |
| 36 | func truncateMicro(t time.Time) time.Time { |
| 37 | return t.Round(time.Microsecond) |
| 38 | } |
| 39 | |
| 40 | func TestGetBooks(t *testing.T) { |
| 41 | db := testutils.InitMemoryDB(t) |
no outgoing calls
no test coverage detected