Skip to content

Commit 3cc9095

Browse files
committed
Port cli_v2 to CliTestContext
1 parent 0df0727 commit 3cc9095

File tree

2 files changed

+1002
-1009
lines changed

2 files changed

+1002
-1009
lines changed

src/test/mock/clitools.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,6 @@ impl SelfUpdateTestContext {
353353
}
354354
}
355355

356-
pub fn test(s: Scenario, f: &dyn Fn(&mut Config)) {
357-
let mut cx = CliTestContext::from(s);
358-
f(&mut cx.config);
359-
}
360-
361356
pub struct CliTestContext {
362357
pub config: Config,
363358
_test_dir: TempDir,

0 commit comments

Comments
 (0)