1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub use crate::interpreter::error::Error as InterpreterError;
pub use crate::interpreter::program::validator::error::{OperationInvalid, ValidationError};

#[cfg(test)]
mod test {
  use anyhow::Result;

  use super::*;
  use crate::interpreter::error::StateError;
  use crate::interpreter::executor::error::ExecutionError;

  fn sync_send<T>()
  where
    T: Sync + Send,
  {
  }

  #[test]
  fn test_sync_send() -> Result<()> {
    sync_send::<InterpreterError>();
    sync_send::<OperationInvalid>();
    sync_send::<ValidationError>();
    sync_send::<ExecutionError>();
    sync_send::<InterpreterError>();
    sync_send::<StateError>();

    Ok(())
  }
}