Skip to content

add AI-generated unit cases for constant value#4789

Open
kylo5aby wants to merge 1 commit intobytecodealliance:mainfrom
kylo5aby:unit-test-enhance-const
Open

add AI-generated unit cases for constant value#4789
kylo5aby wants to merge 1 commit intobytecodealliance:mainfrom
kylo5aby:unit-test-enhance-const

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 4 times, most recently 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.

@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
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch 2 times, most recently from 9d3f96c to 2ea75a4 Compare March 9, 2026 02:44
@kylo5aby kylo5aby marked this pull request as ready for review March 9, 2026 02:45
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch 3 times, most recently from c3e64d9 to 97fe879 Compare March 11, 2026 02:29
Signed-off-by: zhenweijin <zhenwei.jin@intel.com>

Co-authored-by: ai-assistant
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch from 97fe879 to 0922f9a Compare March 11, 2026 02:37
@kylo5aby kylo5aby requested a review from no1wudi as a code owner March 11, 2026 02:37
@kylo5aby kylo5aby force-pushed the unit-test-enhance-const branch from 0922f9a to d10426e Compare March 11, 2026 02:37
@kylo5aby
Copy link
Contributor Author

@lum1n0us @TianlongLiang please take a look

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.

Not sure. but seems there's no need to keep all three files: xx_fix.md, xx_review.md, and xx_verify.md.

${UNCOMMON_SHARED_SOURCE}
)

# Prepare unit test sources for i64.const test
Copy link
Contributor

Choose a reason for hiding this comment

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

remove dead code

# COMMENT "Copying WASM test files to f64_const test build directory"
# )

include(GoogleTest)
Copy link
Contributor

Choose a reason for hiding this comment

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

Better remove this line.

Top-level CMakeLists.txt has done that.

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