Skip to content

Conversation

@kylo5aby
Copy link
Contributor

  • covers wasm_interp_call_func_bytecode, wasm_runtime_instantiate
  • Line coverage: 32.7% → 32.9%
  • Function coverage: no change

@kylo5aby kylo5aby marked this pull request as draft January 16, 2026 11:00
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch 3 times, most recently from 9afdc45 to 7711ec4 Compare January 26, 2026 06:35
Signed-off-by: zhenweijin <zhenwei.jin@intel.com>

Co-authored-by: ai-assistant
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch from 7711ec4 to 83e576e Compare January 30, 2026 08:50
Copy link
Contributor

@lum1n0us lum1n0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually, I think *fix.md, *review.md, and *verify.md should not be merged. They are process files.

We might need a file to inform future contributors (whether human or AI) about which functions and branches have not been covered, so they can add new cases. This would reduce the workload of analyzing and starting to add new cases.

It could also be a skill or some kind of script.


if (WAMR_BUILD_TARGET STREQUAL "X86_64")
add_subdirectory(constants)
endif ()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need to reconsider. If all AI-generation cases are planned to adapt to x86-64 only, adding the if (WAMR_BUILD_TARGET STREQUAL "X86_64") control in tests/unit/CMakeLists.txt would be better.

diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt
index 9c1a4a5d5..78312c62c 100644
--- a/tests/unit/CMakeLists.txt
+++ b/tests/unit/CMakeLists.txt
@@ -64,7 +64,9 @@ add_subdirectory(linux-perf)
 add_subdirectory(gc)
 add_subdirectory(tid-allocator)
 add_subdirectory(unsupported-features)
-add_subdirectory(smart-tests)
+if(WAMR_BUILD_TARGET STREQUAL "X86_64")
+  add_subdirectory(smart-tests)
+endif()
 
 if (NOT WAMR_BUILD_TARGET STREQUAL "X86_32")
   add_subdirectory(aot-stack-frame)


::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cases for NaN?

* @validation_method Verification that invalid operations return null/failure as expected
*/
TEST_P(I32ConstTest, ModuleLevelErrors_HandleGracefully)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case seems not to belong here. It might need to be removed.

* @expected_behavior Proper error handling without crashes, returns null on invalid input
* @validation_method Verification that invalid operations return null/failure as expected
*/
TEST_P(I32ConstTest, ModuleLevelErrors_HandleGracefully)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case seems not to belong here. It might need to be removed.

@lum1n0us lum1n0us added the ai-assistant It is created by an AI assistant or with the help of an AI assistant. label Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assistant It is created by an AI assistant or with the help of an AI assistant.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants