test_executors

Crates.iotest_executors
lib.rstest_executors
version
sourcesrc
created_at2024-10-14 19:18:29.840055
updated_at2024-12-07 00:50:09.372039
descriptionSimple async executors for testing.
homepagehttps://sealedabstract.com/code/test_executors
repositoryhttps://github.com/drewcrawford/test_executors
max_upload_size
id1408577
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Drew Crawford (drewcrawford)

documentation

README

test_executors

logo

This crate provides extremely simple, yet useful, async executors. They are primarily useful for writing unit tests without bringing in a full-blown executor such as tokio.

The executors are:

  • spin_on: polls a future in a busyloop on the current thread.
  • sleep_on: polls a future on the current thread, sleeping between polls.
  • spawn_on: spawns a future on a new thread, polling it there.

some_executor

This crate implements the some_executor trait for all executors, allowing them to be used in executor-agnostic code.

async_test

This crate provides a macro, async_test, allowing tests to be used with async functions, including support for wasm32 targets.

Commit count: 36

cargo fmt