Skip to content

Enhancement: DetachContext and Generic sync.Map#74

Merged
tigh-latte merged 7 commits into
masterfrom
enhancement/syncutil-stuff
May 15, 2023
Merged

Enhancement: DetachContext and Generic sync.Map#74
tigh-latte merged 7 commits into
masterfrom
enhancement/syncutil-stuff

Conversation

@tigh-latte

Copy link
Copy Markdown
Contributor

I've a SyncMap implementation here that would be great to centralise.

Also a detachcontext implementation was added into apigo that would also be great to make general until go adds it to the standard library.

@tigh-latte tigh-latte requested a review from ripexz April 26, 2023 17:00
@tigh-latte tigh-latte requested a review from twariel April 27, 2023 14:20

@ripexz ripexz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some unit tests would be nice too... 👀

Comment thread syncutil/detach.go Outdated
Comment thread syncutil/detach.go Outdated
Comment thread syncutil/detach.go Outdated
Comment thread syncutil/syncmap.go
Comment thread syncutil/syncmap.go
@tigh-latte

Copy link
Copy Markdown
Contributor Author

@ripexz I've done all this here now

@github-actions

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4957863225

  • 41 of 44 (93.18%) changed or added relevant lines in 2 files are covered.
  • 14 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.5%) to 77.544%

Changes Missing Coverage Covered Lines Changed/Added Lines %
contextutil/detachcontext.go 12 15 80.0%
Files with Coverage Reduction New Missed Lines %
goutil/goutil.go 14 64.33%
Totals Coverage Status
Change from base Build 4808557011: 0.5%
Covered Lines: 1143
Relevant Lines: 1474

💛 - Coveralls

Comment thread contextutil/detachcontext.go Outdated

@ripexz ripexz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but please squash

image

And tag + release v2.1.0

@ripexz ripexz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but please squash

image

And tag + release v2.1.0

@tigh-latte tigh-latte merged commit 187876e into master May 15, 2023
@tigh-latte tigh-latte deleted the enhancement/syncutil-stuff branch May 15, 2023 10:23
@coveralls

coveralls commented Jan 21, 2025

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4958638494

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 41 of 44 (93.18%) changed or added relevant lines in 2 files are covered.
  • 14 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.5%) to 77.544%

Changes Missing Coverage Covered Lines Changed/Added Lines %
contextutil/detachcontext.go 12 15 80.0%
Files with Coverage Reduction New Missed Lines %
goutil/goutil.go 14 64.33%
Totals Coverage Status
Change from base Build 4808557011: 0.5%
Covered Lines: 1143
Relevant Lines: 1474

💛 - Coveralls

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.

4 participants