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

Method dotenvIgnoreMissing

src/test/java/tests/BasicTests.java:164–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 @Test
165 void dotenvIgnoreMissing() {
166 final var dotenv = Dotenv.configure()
167 .directory("/missing/.env")
168 .ignoreIfMissing()
169 .load();
170
171 assertHostEnvVar(dotenv);
172 assertNull(dotenv.get("MY_TEST_EV1"));
173 }
174
175 private void assertDirectory(final String directory, final String expected) {
176 final var dotenv = Dotenv.configure()

Callers

nothing calls this directly

Calls 6

configureMethod · 0.95
assertHostEnvVarMethod · 0.95
ignoreIfMissingMethod · 0.80
directoryMethod · 0.80
loadMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected