MCPcopy Create free account
hub / github.com/cdimascio/dotenv-java / assertHostEnvVar

Method assertHostEnvVar

src/test/java/tests/BasicTests.java:183–192  ·  view source on GitHub ↗
(final Dotenv env)

Source from the content-addressed store, hash-verified

181 }
182
183 private void assertHostEnvVar(final Dotenv env) {
184 final var isWindows = System.getProperty("os.name").toLowerCase().contains("win");
185 if (isWindows)
186 assertNotNull(env.get("PATH"));
187 else {
188 final var expectedHome = System.getProperty("user.home");
189 final var actualHome = env.get("HOME");
190 assertEquals(expectedHome, actualHome);
191 }
192 }
193}

Callers 7

dotenvIgnoreMalformedMethod · 0.95
dotenvFilenameMethod · 0.95
resourceRelativeMethod · 0.95
resourceCurrentMethod · 0.95
systemPropertiesMethod · 0.95
noSystemPropertiesMethod · 0.95
dotenvIgnoreMissingMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected