(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func TestMissingVariable(t *testing.T) { |
| 24 | desc := env.Int("TEST_INT_MISSING") |
| 25 | result := 123 // existing value |
| 26 | err := desc.Parse(&result) |
| 27 | |
| 28 | require.NoError(t, err) |
| 29 | assert.Equal(t, 123, result) // value should not change |
| 30 | } |
| 31 | |
| 32 | func TestEmptyValue(t *testing.T) { |
| 33 | t.Setenv("TEST_INT", "") |