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

State management tests #116

Closed
wants to merge 8 commits into from
Closed

State management tests #116

wants to merge 8 commits into from

Conversation

TTWNO
Copy link
Member

@TTWNO TTWNO commented Apr 13, 2023

Add tests for dispatching events with state.

  • Create macros and functions to make newer tests simple.
  • Create tests that cover all dispatch paths:
  • ObjectTextMoved
  • ObjectTextChanged
  • CacheAdd
  • CacheRemove
  • DocumentLoaded

This should bring test coverage up considerably.

@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #116 (39be2f8) into main (535bfa7) will increase coverage by 4.38%.
The diff coverage is 100.00%.

❗ Current head 39be2f8 differs from pull request most recent head 2d19225. Consider uploading reports for the commit 2d19225 to get more accurate results

@@            Coverage Diff            @@
##            main     #116      +/-   ##
=========================================
+ Coverage   9.60%   13.99%   +4.38%     
=========================================
  Files         16       16              
  Lines       1520     1551      +31     
=========================================
+ Hits         146      217      +71     
+ Misses      1374     1334      -40     
Impacted Files Coverage Δ
odilia/src/events/mod.rs 10.18% <100.00%> (+10.18%) ⬆️

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Performance since last time the tests compiled:

* Insertion is up 50-90%.
* Traversal is down 50-300%.
  * This is very likely because the `id` field of the AccessiblePrimitve structure is now a String instead of the AccessibleId enum it was before.
* Still trying to find a way to turn AccessiblePrimitive into a Copy type.
* Remember that copy types should be fairly small, if possible. Certainly no more than 16 or 32 bytes.
@TTWNO
Copy link
Member Author

TTWNO commented Jun 13, 2023

Will be completely re-written after the merge of #119

@TTWNO TTWNO closed this Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant