cdimascio / dotenv-java

🗝️ Dotenv is a no-dep, pure Java module that loads environment variables from a .env file
https://github.com/cdimascio/dotenv-java
Apache License 2.0
444 stars 43 forks source link

jimfs support #59

Closed clintval closed 9 months ago

clintval commented 11 months ago

For testing your library, I'd like to use an in-memory filesystem.

This should be possible but you are only testing for local files here:

https://github.com/cdimascio/dotenv-java/blob/5b6c71d213f05aa87be2655243d342ed888bbbc1/src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java#L45

Are you interested in supporting in-memory test filesystems?

https://github.com/google/jimfs

cdimascio commented 10 months ago

This is interesting. PR is welcome