feat: initial commit

This commit is contained in:
darwincereska
2026-06-08 01:12:46 -04:00
commit 5650a6ce48
8 changed files with 227 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#[cfg(test)]
mod test_errors {
use envkit::error::EnvError;
#[test]
fn test_missing_var() {
assert_eq!(EnvError::missing("missing test"), EnvError::MissingVar("missing test".to_string()));
}
#[test]
fn test_invalid() {
assert_eq!(EnvError::invalid("key", "value", "message"), EnvError::Invalid {
key: "key".to_string(),
value: "value".to_string(),
message: "message".to_string(),
});
}
}