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

Addition of tests for dlqMessageHandler in common domain #5969

Merged
merged 20 commits into from
Jun 4, 2024

Conversation

abhishekj720
Copy link
Contributor

@abhishekj720 abhishekj720 commented May 6, 2024

What changed?
Added test for start, stop, merge and emitDLQSize in dlqMessageHandler

Why?
As part of test coverage week

How did you test it?
Unit tests

Potential risks
No risks, as these are unit tests

Release notes

Documentation Changes

Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.12%. Comparing base (17a7ba7) to head (f8318c1).
Report is 102 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
common/domain/dlq_message_handler.go 96.19% <100.00%> (ø)
service/frontend/admin/handler.go 57.60% <100.00%> (+10.15%) ⬆️

... and 134 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 17a7ba7...f8318c1. Read the comment docs.

common/domain/dlqMessageHandler_test.go Outdated Show resolved Hide resolved
common/domain/dlqMessageHandler_test.go Outdated Show resolved Hide resolved
common/domain/dlqMessageHandler_test.go Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented May 7, 2024

Pull Request Test Coverage Report for Build 018fe4c1-d5d9-4c74-b7a7-acd930882617

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 2 files are covered.
  • 62 unchanged lines in 17 files lost coverage.
  • Overall coverage increased (+0.003%) to 68.415%

Files with Coverage Reduction New Missed Lines %
common/persistence/sql/sqlplugin/postgres/task.go 2 73.4%
service/history/handler/handler.go 2 60.71%
service/matching/db.go 2 73.23%
service/history/task/transfer_active_task_executor.go 2 73.03%
common/util.go 2 91.78%
service/matching/matcher.go 2 90.72%
common/log/tag/tags.go 3 50.46%
common/task/fifo_task_scheduler.go 3 84.54%
service/history/task/timer_standby_task_executor.go 3 85.63%
service/history/queue/timer_queue_processor_base.go 3 77.87%
Totals Coverage Status
Change from base Build 018f54e5-7508-40f1-ae99-a0884c40b0fa: 0.003%
Covered Lines: 100489
Relevant Lines: 146882

💛 - Coveralls

@abhishekj720 abhishekj720 merged commit f130035 into uber:master Jun 4, 2024
20 checks passed
@abhishekj720 abhishekj720 deleted the testc-2 branch June 4, 2024 20:11
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 4, 2024
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 4, 2024
dkrotx pushed a commit to dkrotx/cadence that referenced this pull request Jun 5, 2024
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 6, 2024
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.

10 participants