MCPcopy Index your code
hub / github.com/coder/coder / WithTimezone

Function WithTimezone

coderd/database/dbtestutil/db.go:38–42  ·  view source on GitHub ↗

WithTimezone sets the database to the defined timezone.

(tz string)

Source from the content-addressed store, hash-verified

36
37// WithTimezone sets the database to the defined timezone.
38func WithTimezone(tz string) Option {
39 return func(o *options) {
40 o.fixedTimezone = tz
41 }
42}
43
44// WithDumpOnFailure will dump the entire database on test failure.
45func WithDumpOnFailure() Option {

Callers 4

TestProvisionerDaemonsFunction · 0.92
TestProvisioners_GoldenFunction · 0.92
prepareTestDataFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestProvisionerDaemonsFunction · 0.74
TestProvisioners_GoldenFunction · 0.74