Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete wasm_runtime.so unit tests #62

Open
1 of 7 tasks
gzurl opened this issue Jul 25, 2023 · 0 comments
Open
1 of 7 tasks

Complete wasm_runtime.so unit tests #62

gzurl opened this issue Jul 25, 2023 · 0 comments
Labels
👋 good first issue Good for newcomers 🧪 testing Issues related to testing (unit tests, E2E testing, ...)

Comments

@gzurl
Copy link
Contributor

gzurl commented Jul 25, 2023

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

@gzurl gzurl added 👋 good first issue Good for newcomers 🧪 testing Issues related to testing (unit tests, E2E testing, ...) labels Jul 25, 2023
gzurl added a commit that referenced this issue Jan 26, 2024
fix: Completes code coverage for `module.rs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 good first issue Good for newcomers 🧪 testing Issues related to testing (unit tests, E2E testing, ...)
Projects
None yet
Development

No branches or pull requests

1 participant