Skip to content

test: cover pager page limits and flush validation - #18

Merged
MugdhoAI merged 1 commit into
mainfrom
test/pager-boundary-checks
Nov 14, 2026
Merged

MugdhoAI merged 1 commit into
mainfrom
test/pager-boundary-checks

Conversation

@MugdhoAI

Copy link
Copy Markdown
Owner

Adds missing pager boundary tests to tests/test_pager.c: requesting page TABLE_MAX_PAGES and beyond returns PAGER_OUT_OF_PAGES while the last valid page succeeds, flushing an unallocated or out of range page and closing a null pager return PAGER_INVALID_ARGUMENT, null arguments to pager_open and pager_get_page are rejected, and a file with TABLE_MAX_PAGES plus one pages is rejected at open with PAGER_OUT_OF_PAGES. Local verification: make clean and make test passed with a clean build under the strict flags, running test_database, test_pager, test_parser, and test_shell.sh, all exiting 0.

@MugdhoAI
MugdhoAI merged commit 1364c73 into main Nov 14, 2026
2 checks 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