use gix_credentials::program::main;
use std::io::Cursor;
#[derive(Debug, thiserror::Error)]
#[error("Test error")]
struct TestError;
#[test]
fn context_options_apply_to_input_and_output() {
let input = b"url=https://github.com/with\rreturn\n";
let mut output = Vec::new();
let options = gix_credentials::protocol::ContextOptions {
protect_protocol: false,
};
main(
["get".into()],
Cursor::new(input),
&mut output,
options,
|_action, context| -> Result