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

Add hypercore chunk tests for triggers #7483

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

mkindahl
Copy link
Contributor

@mkindahl mkindahl commented Nov 22, 2024

Add tests for statement and row triggers on hypercore chunks. We test INSERT, UPDATE, DELETE, and TRUNCATE triggers, where applicable. We check that the OLD and NEW values are correct as well as that the statement and row triggers are executed the correct number of times.

Disable-check: force-changelog-file

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.18%. Comparing base (59f50f2) to head (17d35ed).
Report is 628 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7483      +/-   ##
==========================================
+ Coverage   80.06%   82.18%   +2.11%     
==========================================
  Files         190      230      +40     
  Lines       37181    43188    +6007     
  Branches     9450    10867    +1417     
==========================================
+ Hits        29770    35495    +5725     
- Misses       2997     3371     +374     
+ Partials     4414     4322      -92     

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

Copy link

@gayyappan, @erimatnor: please review this pull request.

Powered by pull-review

Copy link
Contributor

@erimatnor erimatnor left a comment

Choose a reason for hiding this comment

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

LGTM, just one minor question.

tsl/test/expected/hypercore_trigger.out Show resolved Hide resolved
@mkindahl mkindahl force-pushed the hypercore-test-triggers branch 4 times, most recently from 12be248 to e727459 Compare November 28, 2024 05:11
Add tests for statement and row triggers on hypercore chunks. We test
`INSERT`, `UPDATE`, `DELETE`, and `TRUNCATE` triggers, where
applicable. We check that the `OLD` and `NEW` values are correct as
well as that the statement and row triggers are executed the correct
number of times.
@mkindahl mkindahl enabled auto-merge (rebase) November 28, 2024 05:12
@mkindahl mkindahl merged commit d7649a3 into timescale:main Nov 28, 2024
50 checks passed
@mkindahl mkindahl deleted the hypercore-test-triggers branch November 28, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants