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 Copy() method to configstore structs #6025

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mantas-sidlauskas
Copy link
Contributor

What changed?
Helper functions copy* are replaced with struct methods

Why?
Better reusability

How did you test it?
Added unit tests

Potential risks

Release notes

Documentation Changes

@coveralls
Copy link

coveralls commented May 17, 2024

Pull Request Test Coverage Report for Build 018fa44e-032a-4f8c-bf4a-b887036099fe

Details

  • 41 of 41 (100.0%) changed or added relevant lines in 2 files are covered.
  • 11 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.05%) to 69.311%

Files with Coverage Reduction New Missed Lines %
service/history/queue/timer_queue_processor_base.go 1 78.28%
service/history/task/transfer_standby_task_executor.go 2 86.83%
common/task/parallel_task_processor.go 2 93.06%
common/task/fifo_task_scheduler.go 2 87.63%
service/matching/tasklist/task_writer.go 2 82.63%
service/matching/tasklist/matcher.go 2 89.35%
Totals Coverage Status
Change from base Build 018fa25a-37ac-4e2f-9de0-0090786e76c2: 0.05%
Covered Lines: 102112
Relevant Lines: 147325

💛 - Coveralls

Copy link
Contributor

@Shaddoll Shaddoll May 22, 2024

Choose a reason for hiding this comment

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

Do you mind adding tests verifying that changing the copy doesn't affect the original?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea! Will do

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.

None yet

3 participants