Replace lexical Rust fragments with real modules
This commit is contained in:
parent
f8849cdb5f
commit
247819250b
3 changed files with 3302 additions and 2671 deletions
|
|
@ -1,3 +1,5 @@
|
|||
use super::*;
|
||||
|
||||
fn assert_no_guest_action_after(factory: &MockFactory, marker: &str) {
|
||||
let log = factory.log.lock().unwrap();
|
||||
let marker = log.iter().position(|action| action == marker).unwrap();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn merged_output_is_ordered_and_prompt_route_isolated_by_session() {
|
||||
let first = id(6);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
use super::*;
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::too_many_lines)]
|
||||
fn prompt_adapter_retains_resume_resize_before_authenticated_denial() {
|
||||
|
|
@ -175,7 +177,7 @@ fn prompt_adapter_retains_resume_resize_before_authenticated_denial() {
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
fn engine_for_store(
|
||||
pub(super) fn engine_for_store(
|
||||
store: Arc<dyn TerminalDomainStore>,
|
||||
) -> (Arc<MockFactory>, SessionTerminalEngine) {
|
||||
let factory = Arc::new(MockFactory::default());
|
||||
|
|
@ -188,11 +190,11 @@ fn engine_for_store(
|
|||
(factory, engine)
|
||||
}
|
||||
|
||||
fn id(value: u8) -> SessionId {
|
||||
pub(super) fn id(value: u8) -> SessionId {
|
||||
SessionId::new(bytes(value))
|
||||
}
|
||||
|
||||
fn assert_no_group_signal(factory: &MockFactory) {
|
||||
pub(super) fn assert_no_group_signal(factory: &MockFactory) {
|
||||
assert!(
|
||||
factory
|
||||
.log
|
||||
|
|
|
|||
Loading…
Reference in a new issue