fixtureEnvironment

fun fixtureEnvironment(base: Map<String, String> = emptyMap(), overrides: Map<String, String?>): Map<String, String>(source)

Builds an isolated environment map for injection or a child process.

Never reads or mutates the current process's environment. null overrides remove keys.

Return

The independent environment map.

Parameters

base

The environment to copy; defaults to an empty environment.

overrides

Variables to replace, or remove when the value is null.