MCPcopy Index your code
hub / github.com/cdimascio/dotenv-java / dotenvFilename

Method dotenvFilename

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

Source from the content-addressed store, hash-verified

50 }
51
52 @Test
53 void dotenvFilename() {
54 final var dotenv = Dotenv.configure()
55 .directory("./src/test/resources")
56 .filename("env")
57 .ignoreIfMalformed()
58 .load();
59
60 envVars.forEach((key, expected) -> assertEquals(expected, dotenv.get(key)));
61 assertHostEnvVar(dotenv);
62 }
63
64 @Test
65 void resourceRelative() {

Callers

nothing calls this directly

Calls 7

configureMethod · 0.95
assertHostEnvVarMethod · 0.95
ignoreIfMalformedMethod · 0.80
filenameMethod · 0.80
directoryMethod · 0.80
loadMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected