Skip to content

test: add btree_index unit tests (26 tests)#34

Merged
poyrazK merged 3 commits intomainfrom
feat/btree-index-tests
Apr 14, 2026
Merged

test: add btree_index unit tests (26 tests)#34
poyrazK merged 3 commits intomainfrom
feat/btree-index-tests

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented Apr 14, 2026

Summary

  • Add btree_index_tests.cpp with 26 unit tests for BTreeIndex B+ tree index storage
  • Add add_cloudsql_test(btree_index_tests tests/btree_index_tests.cpp) to CMakeLists.txt

Test Coverage

  • Constructor tests (basic, text key)
  • Create/Open/Drop lifecycle
  • Insert single/multiple/duplicate entries
  • Search existing/non-existent keys
  • Remove entry
  • Scan iterator tests
  • TupleId and Entry tests
  • Index name and key type
  • Data persistence across open/close

Test plan

  • Build passes
  • All 26 tests pass

poyrazK added 2 commits April 14, 2026 20:05
Add the new btree_index_tests target to the CMake build system.
- Constructor tests
- Create/Open/Drop lifecycle tests
- Insert single/multiple/duplicate entries
- Search existing/non-existent keys
- Remove entry
- Scan iterator tests
- TupleId and Entry tests
- Index name and key type tests
- Data persistence tests
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 14, 2026

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 53 minutes and 56 seconds before requesting another review.

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 53 minutes and 56 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 624d6dea-c0d0-44f1-9d65-bc07cde675f4

📥 Commits

Reviewing files that changed from the base of the PR and between 7a91cee and 0acd816.

📒 Files selected for processing (2)
  • CMakeLists.txt
  • tests/btree_index_tests.cpp
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/btree-index-tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@poyrazK poyrazK merged commit adf851e into main Apr 14, 2026
1 check passed
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