Diff
pisshoff-server/src/command/cat.rs | 2 +-
pisshoff-server/src/command/scp.rs | 2 +-
pisshoff-server/src/subsystem/shell/parser.rs | 8 ++++++--
3 files changed, 6 insertions(+), 6 deletions(-)
@@ -79,7 +79,7 @@
mod test {
use std::path::Path;
use mockall::predicate::{self, always};
use mockall::predicate::always;
use crate::{
command::{cat::Cat, Command, CommandResult},
@@ -373,7 +373,7 @@
.unwrap_stdin();
insta::with_settings!({filters => vec![
(r#"\bstart_offset: [^,]+"#, "start_offset: [stripped]")
(r"\bstart_offset: [^,]+", "start_offset: [stripped]")
]}, {
assert_debug_snapshot!(state.audit_log());
});
@@ -316,7 +316,7 @@
assert!(rest.is_empty());
let state = ConnectionState::mock();
let mut command = Iter::new(s.into());
let mut command = Iter::new(s);
let step = command.step(state.environment(), None);
@@ -346,7 +346,7 @@
assert!(rest.is_empty());
let state = ConnectionState::mock();
let mut command = Iter::new(s.into());
let mut command = Iter::new(s);
let step = command.step(state.environment(), None);
@@ -504,7 +504,7 @@
ParsedPart::Break,
ParsedPart::String(Cow::Borrowed(b"hello")),
])
)
);
}
}
@@ -557,7 +557,7 @@
])),
ParsedPart::String(Cow::Borrowed(b" test")),
]
)
);
}
#[test]