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

Adding tests for nosqlQueueStore #5924

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

dkrotx
Copy link
Member

@dkrotx dkrotx commented Apr 19, 2024

This first diff is around newNoSQLQueueStore()

unit tests

code coverage for nosql_queue_store.go

make test

none

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

Merging #5924 (dbef860) into master (b005d32) will increase coverage by 0.04%.
The diff coverage is 100.00%.

❗ Current head dbef860 differs from pull request most recent head af59da3. Consider uploading reports for the commit af59da3 to get more accurate results

Additional details and impacted files
Files Coverage Δ
common/persistence/nosql/plugin.go 28.57% <100.00%> (+8.57%) ⬆️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b005d32...af59da3. Read the comment docs.

This first diff is around newNoSQLQueueStore()
Now it is 94% covered
There are still some edge-cases to cover, will address this in the
next PR among with small test restructuring: I want to combine
some tests under t.Run() and re-use the common initialisation this way.
@coveralls
Copy link

coveralls commented Apr 22, 2024

Pull Request Test Coverage Report for Build 018f0604-fb84-46a1-90d8-d706591f2dc2

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 56 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.08%) to 67.671%

Files with Coverage Reduction New Missed Lines %
service/matching/taskReader.go 2 84.88%
service/history/execution/mutable_state_util.go 2 78.52%
service/history/queue/timer_gate.go 3 95.83%
service/matching/taskListManager.go 4 80.65%
service/history/task/fetcher.go 5 85.57%
service/history/task/cross_cluster_task_processor.go 8 80.79%
service/history/execution/mutable_state_task_refresher.go 32 56.65%
Totals Coverage Status
Change from base Build 018ef6e1-d6f1-4805-b255-638c4a8afae3: 0.08%
Covered Lines: 99096
Relevant Lines: 146438

💛 - Coveralls

@dkrotx dkrotx merged commit 3db7157 into cadence-workflow:master Apr 22, 2024
18 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.

3 participants