test: improve transaction_manager branch coverage to 59%#58
Conversation
Cover prepare() early-return when txn state != RUNNING (lines 62-64). Branch coverage improves from 22.1% to 25.2%.
…AX_COMPLETED threshold
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 15 minutes and 6 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The return type was changed from lsn_t to bool in a previous refactor. Update the test to use the LogRecord's lsn_ field after successful append, and reference qlog2.lsn_ instead of the removed local variable.
Summary
Test plan
make transaction_manager_tests && ./transaction_manager_tests- all 53 tests passgcov -b- branches taken-at-least-once: 44% -> 59%Coverage