environment

package
v0.0.0-...-07c49c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package environment provides utility functions for interacting with the OS environment (e.g environment variables).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstNonEmptyEnvVarOrEmptyString

func GetFirstNonEmptyEnvVarOrEmptyString(t testing.TestingT, envVarNames []string) string

GetFirstNonEmptyEnvVarOrEmptyString returns the first non-empty environment variable from envVarNames, or returns the empty string

func GetFirstNonEmptyEnvVarOrFatal

func GetFirstNonEmptyEnvVarOrFatal(t testing.TestingT, envVarNames []string) string

GetFirstNonEmptyEnvVarOrFatal returns the first non-empty environment variable from envVarNames, or throws a fatal

func RequireEnvVar

func RequireEnvVar(t testing.TestingT, envVarName string)

RequireEnvVar fails the test if the specified environment variable is not defined or is blank.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL