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

Method failToAddToDotenv

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

Source from the content-addressed store, hash-verified

77 }
78
79 @Test
80 void failToAddToDotenv() {
81 final var dotenv = Dotenv.configure().ignoreIfMalformed().load();
82 final var entries = dotenv.entries();
83 assertThrows(UnsupportedOperationException.class, () -> entries.add(new DotenvEntry("new", "value")));
84 }
85
86 @Test
87 void configureWithIgnoreMalformed() {

Callers

nothing calls this directly

Calls 4

configureMethod · 0.95
ignoreIfMalformedMethod · 0.80
loadMethod · 0.65
entriesMethod · 0.65

Tested by

no test coverage detected