Function near_vm_logic::test_utils::test_memory_like
source · pub fn test_memory_like(factory: impl FnOnce() -> Box<dyn MemoryLike>)
Expand description
Tests for implementation of MemoryLike interface.
The factory
returns a MemoryLike
implementation to be tested. The
memory must be configured with 64 KiB (i.e. single WASM page) of memory
available.
Panics if any of the tests fails.