mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-17 11:16:35 -07:00
transition time ranged queries to timeframe (#117)
This commit is contained in:
parent
ad3c51a70e
commit
d327729bff
26 changed files with 2032 additions and 335 deletions
|
|
@ -3,6 +3,9 @@ package db_test
|
|||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/gabehf/koito/internal/db"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestListenActivityOptsToTimes(t *testing.T) {
|
||||
|
|
@ -21,6 +24,11 @@ func eod(t time.Time) time.Time {
|
|||
return time.Date(year, month, day, 23, 59, 59, 0, loc)
|
||||
}
|
||||
|
||||
func TestPeriodUnset(t *testing.T) {
|
||||
var p db.Period
|
||||
require.True(t, p.IsZero())
|
||||
}
|
||||
|
||||
func bod(t time.Time) time.Time {
|
||||
year, month, day := t.Date()
|
||||
loc := t.Location()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue