summaryrefslogtreecommitdiff
path: root/src/tests/mod.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-08-23 16:17:42 +0200
committerDaniel Mueller <deso@posteo.net>2021-01-10 17:37:53 -0800
commit4f37ab793f2a094ce24e010c06d9c71ab95873a7 (patch)
tree2baf7538c67a6b0142fc8daf31363e0f818a490e /src/tests/mod.rs
parentac19dd1b91ee29bf67c44503c99297483df5c374 (diff)
downloadnitrocli-4f37ab793f2a094ce24e010c06d9c71ab95873a7.tar.gz
nitrocli-4f37ab793f2a094ce24e010c06d9c71ab95873a7.tar.bz2
Merge ExecCtx and RunCtx into Context
Since we moved the model, no_cache and verbosity fields from ExecCtx into Config and added a Config field to both ExecCtx and RunCtx, RunCtx and ExecCtx are identical. Therefore this patch merges the ExecCtx and RunCtx structs into the new Context struct.
Diffstat (limited to 'src/tests/mod.rs')
-rw-r--r--src/tests/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index 9477964..3c38b8e 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -94,7 +94,7 @@ impl Nitrocli {
fn do_run<F, R>(&mut self, args: &[&str], f: F) -> (R, Vec<u8>, Vec<u8>)
where
- F: FnOnce(&mut crate::RunCtx<'_>, Vec<String>) -> R,
+ F: FnOnce(&mut crate::Context<'_>, Vec<String>) -> R,
{
let args = ["nitrocli"]
.iter()
@@ -107,7 +107,7 @@ impl Nitrocli {
let mut stdout = Vec::new();
let mut stderr = Vec::new();
- let ctx = &mut crate::RunCtx {
+ let ctx = &mut crate::Context {
stdout: &mut stdout,
stderr: &mut stderr,
admin_pin: self.admin_pin.clone(),