Skip to content

Commit

Permalink
feat(mpz-common): add type alias for test st executor (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 committed Jun 25, 2024
1 parent 2caf5a9 commit dd0d889
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/mpz-common/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ mod test_utils {

use super::*;

/// Test single-threaded executor.
pub type TestSTExecutor = STExecutor<MemoryDuplex>;

/// Creates a pair of single-threaded executors with memory I/O channels.
pub fn test_st_executor(
io_buffer: usize,
) -> (STExecutor<MemoryDuplex>, STExecutor<MemoryDuplex>) {
pub fn test_st_executor(io_buffer: usize) -> (TestSTExecutor, TestSTExecutor) {
let (io_0, io_1) = duplex(io_buffer);

(STExecutor::new(io_0), STExecutor::new(io_1))
Expand Down

0 comments on commit dd0d889

Please sign in to comment.