From 60f721b94ae70533a4a6ee9ffa7d24e5a19abff5 Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Tue, 15 Feb 2022 21:17:00 +0000 Subject: Add unit tests for Context --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 67c6541..db517d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ mod executor; use jsonformat::{format_json, Indentation}; use barbfile::BarbFile; -use executor::Executor; +use executor::{Context, Executor}; use clap::Parser; @@ -47,7 +47,7 @@ impl Args { fn main() { let args = Args::parse(); - let mut executor = Executor::new(); + let mut executor = Executor::new(Context::new(env::vars())); let bfile = BarbFile::from_str( fs::read_to_string("test.barb") .expect("Failed to read file") -- cgit v1.2.3