Skip to content

Added sqlmock-based unit tests for every mysql store file#378

Merged
behinddwalls merged 2 commits into
uber:mainfrom
roychying:chenghan.ying/add-unit-tests-for-mysql-storage-flies
Jul 16, 2026
Merged

Added sqlmock-based unit tests for every mysql store file#378
behinddwalls merged 2 commits into
uber:mainfrom
roychying:chenghan.ying/add-unit-tests-for-mysql-storage-flies

Conversation

@roychying

Copy link
Copy Markdown
Contributor

Why?

Added sqlmock-based unit tests for every mysql store file in both stovepipe/extension/storage/mysql/ and submitqueue/extension/storage/mysql/.

What?

Added one _test.go per store file (17 new files, no production code changed):

  • stovepipe: storage_test.go, build_store_test.go, queue_store_test.go, request_store_test.go (+ isDuplicateEntry), request_uri_store_test.go.
  • submitqueue: storage_test.go, build_store_test.go, batch_store_test.go, batch_dependent_store_test.go, change_store_test.go, request_log_store_test.go, request_store_test.go, request_summary_store_test.go (+ normalizeChangeURIs/normalizeMetadata), request_queue_summary_store_test.go, request_uri_store_test.go, speculation_path_build_store_test.go, speculation_tree_store_test.go.

Test Plan

make build & make test - all clean

Issue

@roychying
roychying requested review from a team, behinddwalls and sbalabanov as code owners July 15, 2026 23:11
@behinddwalls
behinddwalls enabled auto-merge July 16, 2026 02:52
@behinddwalls
behinddwalls added this pull request to the merge queue Jul 16, 2026
Merged via the queue into uber:main with commit 75f62a6 Jul 16, 2026
15 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.

2 participants