keyvaluedb-memorydb 0.1.8

A key-value in-memory database that implements the `KeyValueDB` trait
Documentation
#![cfg(all(target_arch = "wasm32", target_os = "unknown"))]

use keyvaluedb_memorydb::create;
use keyvaluedb_shared_tests as st;
use std::io;
use wasm_bindgen_test::*;

wasm_bindgen_test_configure!(run_in_browser);

#[wasm_bindgen_test]
async fn get_fails_with_non_existing_column() -> io::Result<()> {
    let db = create(1);
    st::test_get_fails_with_non_existing_column(db).await
}

#[wasm_bindgen_test]
async fn put_and_get() -> io::Result<()> {
    let db = create(1);
    st::test_put_and_get(db).await
}

#[wasm_bindgen_test]
async fn delete_and_get() -> io::Result<()> {
    let db = create(1);
    st::test_delete_and_get(db).await
}

#[wasm_bindgen_test]
async fn delete_and_get_single() -> io::Result<()> {
    let db = create(1);
    st::test_delete_and_get_single(db).await
}

#[wasm_bindgen_test]
async fn delete_prefix() -> io::Result<()> {
    let db = create(st::DELETE_PREFIX_NUM_COLUMNS);
    st::test_delete_prefix(db).await
}

#[wasm_bindgen_test]
async fn iter() -> io::Result<()> {
    let db = create(1);
    st::test_iter(db).await
}

#[wasm_bindgen_test]
async fn iter_keys() -> io::Result<()> {
    let db = create(1);
    st::test_iter_keys(db).await
}

#[wasm_bindgen_test]
async fn iter_with_prefix() -> io::Result<()> {
    let db = create(1);
    st::test_iter_with_prefix(db).await
}

#[wasm_bindgen_test]
async fn complex() -> io::Result<()> {
    let db = create(1);
    st::test_complex(db).await
}