mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 07:34:18 +02:00
test: clarify empty-env-var semantics in default test
This commit is contained in:
parent
e993c35d0e
commit
1da125e46f
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ import (
|
|||
)
|
||||
|
||||
func TestConfig_HighPerformancePagerDefault(t *testing.T) {
|
||||
// caarlos0/env treats a set-but-empty var the same as unset when a
|
||||
// default exists (env.getOr: `exists && value == "" && defExists`),
|
||||
// so setting "" here exercises the same envDefault path as a truly
|
||||
// unset var.
|
||||
t.Setenv("GLOW_HIGH_PERFORMANCE_PAGER", "")
|
||||
|
||||
cfg, err := env.ParseAs[Config]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue