Add fixture meta for single file fixture

This commit is contained in:
Edwin Cheng
2020-03-10 02:02:43 +08:00
parent d53627beba
commit 773f3afd36
3 changed files with 55 additions and 14 deletions

View File

@@ -261,6 +261,16 @@ impl fmt::Display for Edition {
}
}
impl Env {
pub fn set(&mut self, env: &str, value: String) {
self.entries.insert(env.to_owned(), value);
}
pub fn get(&self, env: &str) -> Option<String> {
self.entries.get(env).cloned()
}
}
#[derive(Debug)]
pub struct ParseEditionError {
invalid_input: String,