dotenvs 0.2.2

A correct dotenv library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod fixtures;
use fixtures::*;

#[test]
fn test_sample() -> anyhow::Result<()> {
    let (_t, exps) = with_multiline_dotenv()?;
    for (key, value) in dotenv::from_filename(".env")?.iter() {
        let expected = exps.get(key).unwrap();
        assert_eq!(expected, &value, "check {}", key);
    }

    Ok(())
}