MCPcopy Create free account
hub / github.com/codnect/procyon / TestEnvPropertySource_PropertyNames

Function TestEnvPropertySource_PropertyNames

runtime/environment_test.go:209–220  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

207}
208
209func TestEnvPropertySource_PropertyNames(t *testing.T) {
210 // given
211 os.Setenv("ANY_KEY", "anyValue")
212
213 envPropSource := NewEnvPropertySource()
214
215 // when
216 propNames := envPropSource.PropertyNames()
217
218 // then
219 assert.Contains(t, propNames, "ANY_KEY")
220}

Callers

nothing calls this directly

Calls 2

PropertyNamesMethod · 0.95
NewEnvPropertySourceFunction · 0.85

Tested by

no test coverage detected