MCPcopy Create free account
hub / github.com/dashed/git-chain / run_test_bin_expect_err

Function run_test_bin_expect_err

tests/common/mod.rs:262–277  ·  view source on GitHub ↗
(current_dir: P, arguments: I)

Source from the content-addressed store, hash-verified

260
261#[allow(dead_code)]
262pub fn run_test_bin_expect_err<I, T, P: AsRef<Path>>(current_dir: P, arguments: I) -> Output
263where
264 I: IntoIterator<Item = T>,
265 T: AsRef<OsStr>,
266{
267 let output = run_test_bin(current_dir, arguments);
268
269 if output.status.success() {
270 io::stdout().write_all(&output.stdout).unwrap();
271 io::stderr().write_all(&output.stderr).unwrap();
272 }
273
274 assert!(!output.status.success(), "expect err");
275
276 output
277}
278
279pub fn run_test_bin_expect_ok<I, T, P: AsRef<Path>>(current_dir: P, arguments: I) -> Output
280where

Callers 4

init_subcommandFunction · 0.85
no_subcommandFunction · 0.85
not_a_git_repoFunction · 0.85

Calls 1

run_test_binFunction · 0.85

Tested by 4

init_subcommandFunction · 0.68
no_subcommandFunction · 0.68
not_a_git_repoFunction · 0.68