Documentation ¶
Overview ¶
Package gctest contains testing helpers.
Index ¶
- func DB(t tester) (context.Context, func())
- func Site(ctx context.Context, t *testing.T, site goatcounter.Site) (context.Context, goatcounter.Site)
- func StoreHits(ctx context.Context, t *testing.T, wantFail bool, hits ...goatcounter.Hit) []goatcounter.Hit
- func SwapNow(t *testing.T, date interface{}) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Site ¶
func Site(ctx context.Context, t *testing.T, site goatcounter.Site) (context.Context, goatcounter.Site)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.