zinkc_filetests

Struct Test

Source
pub struct Test {
    pub module: String,
    pub name: String,
    pub wasm: Vec<u8>,
}
Expand description

A wat test

Fields§

§module: String

The module name

§name: String

The test name

§wasm: Vec<u8>

The test source

Implementations§

§

impl Test

pub const I32SUB_LOCALS: [u8; 62] = _

path: i32sub::locals

pub const I32SUB_PARAMS: [u8; 32] = _

path: i32sub::params

pub const I64ADD_LOCALS: [u8; 62] = _

path: i64add::locals

pub const I64ADD_PARAMS: [u8; 32] = _

path: i64add::params

pub const I64ADD_TEE: [u8; 60] = _

path: i64add::tee

pub const IF_BASIC: [u8; 45] = _

path: if::basic

pub const IF_SINGULAR: [u8; 74] = _

path: if::singular

pub const STORAGE_BASIC: [u8; 69] = _

path: storage::basic

pub const STORAGE_STORE: [u8; 52] = _

path: storage::store

pub const STORAGE_LOAD: [u8; 69] = _

path: storage::load

pub const LOOP_SINGULAR: [u8; 48] = _

path: loop::singular

pub const LOOP_AS_BR_IF: [u8; 49] = _

path: loop::as_br_if

pub const I64SUB_LOCALS: [u8; 62] = _

path: i64sub::locals

pub const I64SUB_PARAMS: [u8; 32] = _

path: i64sub::params

pub const LOG_LOG1: [u8; 150] = _

path: log::log1

pub const LOG_LOG0: [u8; 81] = _

path: log::log0

pub const LOG_LOG2: [u8; 163] = _

path: log::log2

pub const LOG_LOG3: [u8; 172] = _

path: log::log3

pub const LOG_LOG4: [u8; 181] = _

path: log::log4

pub const CALL_DUMMY: [u8; 61] = _

path: call::dummy

pub const CALL_AS_IF: [u8; 53] = _

path: call::as_if

pub const CALL_PARAMS: [u8; 67] = _

path: call::params

pub const BR_IF_AS_BLOCK_LAST: [u8; 97] = _

path: br_if::as_block_last

pub const SELECT_PARAMS: [u8; 56] = _

path: select::params

pub const I32ADD_LOCALS: [u8; 62] = _

path: i32add::locals

pub const I32ADD_PARAMS: [u8; 32] = _

path: i32add::params

pub const I32ADD_TEE: [u8; 60] = _

path: i32add::tee

pub const RECURSION_FIBONACCI: [u8; 163] = _

path: recursion::fibonacci

pub fn load(module: &str, name: &str) -> Result<Self>

Load test from module and name.

Trait Implementations§

Source§

impl Clone for Test

Source§

fn clone(&self) -> Test

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for Test

§

impl RefUnwindSafe for Test

§

impl Send for Test

§

impl Sync for Test

§

impl Unpin for Test

§

impl UnwindSafe for Test

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.