Skip to content

Complete wasm_runtime.so unit tests #62

Open
@gzurl

Description

@gzurl

Is your feature request related to a problem? Please describe.

The wasm_runtime.so Rust library is at the core of mod_wasm.
https://github.com/vmware-labs/mod_wasm/tree/main/wasm_runtime/src

Thus, it requires minimal unit tests to harden its stability.

Describe the solution you'd like

Originally, minimal unit tests were included for the low-level const_c_char_to_str() at ffi_utils.rs.
The unit tests coverage for this library should be increased in all files.

  • ffi_utils.rs
  • c_api.rs
  • config.rs
  • module.rs
  • wasi_ctx.rs
  • wasm_engine.rs
  • execution_ctx.rs

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👋 good first issueGood for newcomers🧪 testingIssues related to testing (unit tests, E2E testing, ...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions