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

Method iteratorOverDotenv

src/test/java/tests/DotenvTests.java:38–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 @Test
39 void iteratorOverDotenv() {
40 final var dotenv = Dotenv.configure().ignoreIfMalformed().load();
41
42 dotenv
43 .entries()
44 .forEach(e -> assertEquals(dotenv.get(e.getKey()), e.getValue()));
45
46 for (final var e : dotenv.entries()) {
47 assertEquals(dotenv.get(e.getKey()), e.getValue());
48 }
49 }
50
51 @Test
52 void iteratorOverDotenvWithFilter() {

Callers

nothing calls this directly

Calls 7

configureMethod · 0.95
ignoreIfMalformedMethod · 0.80
getKeyMethod · 0.80
getValueMethod · 0.80
loadMethod · 0.65
entriesMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected