Files
wazero/internal/integration_test
Crypt Keeper 64a4ab3ba5 wasi: unexports errno and re-uses constants for logging (#971)
We originally exported WASI errno as we originally supported invoking
host functions directly (e.g. without a guest). This was an invalid call
pattern, and we removed that. However, we left the errnos exported even
though the caller of a guest won't ever see them. This prevented us from
re-using them cleanly in features such as logging.

This moves all constants including function names and flag enums
internal so that there is less duplication between logging and
implementation of wasi functions. This also helps in reference searches,
as we can analyze uses of a particular function name.

The only constant left exported is the module name, as there's a use
case for that (overriding implementations via FunctionBuilder).

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-12-29 09:42:10 +08:00
..
2022-12-21 09:17:13 +08:00

This directory contains tests which use multiple packages. For example:

  • bench contains benchmark tests.
  • engine contains variety of end-to-end tests, mainly to ensure the consistency in the behavior between engines.
  • fuzzcases contains variety of test cases found by the fuzz testing.
  • post1_0 contains end-to-end tests for features finished after WebAssembly 1.0 (20191205).
  • spectest contains end-to-end tests with the WebAssembly specification tests.
  • vs tests and benchmarks VS other WebAssembly runtimes.

Note: This doesn't contain WASI tests, as there's not yet an official testsuite. Meanwhile, WASI functions are unit tested including via Text Format imports here