Skip to content

refactor(wow-core): replace contextName, processorName, functionName with function object #1827

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

Merged
merged 2 commits into from
Aug 5, 2025

Conversation

Ahoo-Wang
Copy link
Owner

  • Introduce NamedFunctionInfoData to encapsulate function information
  • Update WaitingForFunction and related classes to use NamedFunctionInfoData
  • Modify isWaitingForFunction to use NamedFunctionInfoData
  • Adjust WaitingForStage.Materialized to handle function information
  • Update related tests to accommodate the new structure

…with function object

- Introduce NamedFunctionInfoData to encapsulate function information
- Update WaitingForFunction and related classes to use NamedFunctionInfoData
- Modify isWaitingForFunction to use NamedFunctionInfoData
- Adjust WaitingForStage.Materialized to handle function information
- Update related tests to accommodate the new structure

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label Aug 5, 2025
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Test Results

1 468 tests  ±0   1 451 ✅ ±0   12m 55s ⏱️ + 1m 2s
  368 suites ±0      17 💤 ±0 
  368 files   ±0       0 ❌ ±0 

Results for commit 3269efe. ± Comparison against base commit 2b4103c.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.21%. Comparing base (7138bff) to head (3269efe).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ain/kotlin/me/ahoo/wow/command/wait/WaitingFors.kt 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1827      +/-   ##
============================================
- Coverage     91.23%   91.21%   -0.02%     
+ Complexity     3721     3715       -6     
============================================
  Files           702      702              
  Lines         12832    12827       -5     
  Branches        815      817       +2     
============================================
- Hits          11707    11700       -7     
- Misses          738      739       +1     
- Partials        387      388       +1     
Flag Coverage Δ
unittests 91.21% <94.44%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Implement comprehensive tests for the isWaitingForFunction method
- Cover various scenarios including null values, empty fields, and partial matches
- Ensure thorough testing of function matching logic

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang merged commit 241ac76 into main Aug 5, 2025
14 checks passed
@Ahoo-Wang Ahoo-Wang deleted the NamedFunctionInfoData branch August 5, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant