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

Add tests for service/matching/handler/handler.go #6116

Merged

Conversation

fimanishi
Copy link
Member

What changed?
tests for service/matching/handler/handler.go

Why?
improve unit test coverage

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.39%. Comparing base (dc2a3a1) to head (f01e807).
Report is 25 commits behind head on master.

Additional details and impacted files

see 34 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 dc2a3a1...f01e807. Read the comment docs.

@coveralls
Copy link

coveralls commented Jun 5, 2024

Pull Request Test Coverage Report for Build 018fea7a-18b7-47bd-a290-626b1503cb11

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 466 unchanged lines in 14 files lost coverage.
  • Overall coverage decreased (-0.1%) to 70.666%

Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 2 88.56%
common/persistence/historyManager.go 2 66.67%
service/history/task/transfer_standby_task_executor.go 4 87.35%
bench/lib/client.go 4 0.0%
service/matching/config/config.go 4 91.49%
service/history/engine/engineimpl/start_workflow_execution.go 5 77.76%
service/history/engine/engineimpl/reset_sticky_tasklist.go 6 66.67%
service/history/engine/engineimpl/terminate_workflow_execution.go 8 80.0%
service/history/engine/engineimpl/history_engine.go 9 82.94%
common/domain/replication_queue.go 18 74.83%
Totals Coverage Status
Change from base Build 018fea60-5d6d-4e72-9c82-d4d291808f26: -0.1%
Covered Lines: 105258
Relevant Lines: 148952

💛 - Coveralls

**What changed?**
tests for service/matching/handler/handler.go

**Why?**
improve unit test coverage

**How did you test it?**
unit tests

**Potential risks**

**Release notes**

**Documentation Changes**
@coveralls
Copy link

coveralls commented Jun 5, 2024

Pull Request Test Coverage Report for Build 018feab2-8717-4ed8-a03c-5959e4a21454

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 977 unchanged lines in 21 files lost coverage.
  • Overall coverage decreased (-0.5%) to 70.661%

Files with Coverage Reduction New Missed Lines %
service/history/task/transfer_active_task_executor.go 2 72.9%
service/matching/tasklist/matcher.go 2 89.35%
service/matching/tasklist/task_reader.go 2 77.72%
bench/lib/client.go 4 0.0%
common/archiver/filestore/historyArchiver.go 4 80.95%
common/types/mapper/thrift/shared.go 4 98.31%
service/matching/config/config.go 4 91.49%
service/history/engine/engineimpl/start_workflow_execution.go 5 77.76%
service/history/task/transfer_standby_task_executor.go 6 86.33%
service/history/engine/engineimpl/reset_sticky_tasklist.go 6 66.67%
Totals Coverage Status
Change from base Build 018feaa3-8a65-4c9c-874c-0243b9141bed: -0.5%
Covered Lines: 105251
Relevant Lines: 148952

💛 - Coveralls

wg.Wait()
}

func (s *handlerSuite) TestStop() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add go routine leak detection. goleak.VerifyNone

@coveralls
Copy link

coveralls commented Jun 6, 2024

Pull Request Test Coverage Report for Build 018fee8f-064e-4387-b1d1-93c64d6eb36f

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1172 unchanged lines in 24 files lost coverage.
  • Overall coverage decreased (-0.6%) to 70.668%

Files with Coverage Reduction New Missed Lines %
service/history/queue/timer_queue_processor_base.go 1 77.66%
common/persistence/sql/sqlplugin/postgres/task.go 2 73.4%
service/history/task/transfer_standby_task_executor.go 3 86.33%
service/history/task/task.go 3 84.81%
bench/lib/client.go 4 0.0%
common/types/mapper/thrift/shared.go 4 98.31%
service/matching/config/config.go 4 91.49%
service/history/engine/engineimpl/start_workflow_execution.go 5 77.76%
service/history/engine/engineimpl/reset_sticky_tasklist.go 6 66.67%
service/history/execution/cache.go 6 74.61%
Totals Coverage Status
Change from base Build 018fee53-2f0a-42d7-9d39-e20b5cb03809: -0.6%
Covered Lines: 105262
Relevant Lines: 148952

💛 - Coveralls

@fimanishi fimanishi merged commit 15775af into cadence-workflow:master Jun 6, 2024
20 checks passed
@fimanishi fimanishi deleted the tests-for-matching-handler branch June 6, 2024 18:00
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