()
| 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() |
nothing calls this directly
no test coverage detected