package config // This file exposes the unexported environment parsing helpers to // the external config_test package so each helper can be covered by // its own table-driven test without weakening the package API. // EnvBoolForTest exposes envBool. func EnvBoolForTest(key string, defaultValue bool) (bool, error) { return envBool(key, defaultValue) } // EnvPositiveIntForTest exposes envPositiveInt. func EnvPositiveIntForTest(key string, defaultValue int) (int, error) { return envPositiveInt(key, defaultValue) } // EnvPortForTest exposes envPort. func EnvPortForTest(key string, defaultValue int) (int, error) { return envPort(key, defaultValue) }