MCPcopy Create free account
hub / github.com/github/gh-aw / TestResolveDefaultUTC

Function TestResolveDefaultUTC

pkg/workflow/compilerenv/manager_test.go:142–152  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

140}
141
142func TestResolveDefaultUTC(t *testing.T) {
143 t.Run("unset uses fallback", func(t *testing.T) {
144 t.Setenv(DefaultUTC, "")
145 assert.Equal(t, "+00:00", ResolveDefaultUTC("+00:00"))
146 })
147
148 t.Run("set value overrides fallback", func(t *testing.T) {
149 t.Setenv(DefaultUTC, "-08:00")
150 assert.Equal(t, "-08:00", ResolveDefaultUTC("+00:00"))
151 })
152}
153
154func TestResolvePolicyModelsAllowed(t *testing.T) {
155 t.Run("unset returns no override", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

ResolveDefaultUTCFunction · 0.85
SetenvMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected