-
Notifications
You must be signed in to change notification settings - Fork 34
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
test: Empty memory support #732
Conversation
Codecov Report
@@ Coverage Diff @@
## master #732 +/- ##
=======================================
Coverage 99.34% 99.34%
=======================================
Files 73 73
Lines 11142 11164 +22
=======================================
+ Hits 11069 11091 +22
Misses 73 73
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/* wat2wasm | ||
(memory 0) | ||
*/ | ||
const auto wasm_memory_empty = from_hex("0061736d010000000503010000"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this duplicated in two test cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One test here checks module inspection function fizzy_module_has_memory
The test below checks instance memory access functions.
include/fizzy/fizzy.h
Outdated
@@ -450,6 +450,8 @@ const FizzyModule* fizzy_get_instance_module(FizzyInstance* instance); | |||
/// @return Pointer to memory data or NULL in case instance doesn't have any memory. | |||
/// | |||
/// @note Function returns pointer to memory regardless of whether memory is exported or not. | |||
/// @note For instances of the modules defined with memory of size 0 the returned pointers is not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @note For instances of the modules defined with memory of size 0 the returned pointers is not | |
/// @note For instances of the modules defined with memory of size 0 the returned pointers are not |
f1d790b
to
a1bdb83
Compare
No description provided.