Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
mod common;
use dotenvy::*;
use std::{env, error::Error, fs::File, result::Result};
use crate::common::*;
#[test]
fn test_from_read() -> Result<(), Box<dyn Error>> {
let dir = make_test_dotenv()?;
from_read(File::open(".env")?)?;
assert_eq!(env::var("TESTKEY")?, "test_val");
assert_eq!(env::var("EXISTING")?, "from_env");
env::set_current_dir(dir.path().parent().unwrap())?;
dir.close()?;
Ok(())
}