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

fix: add error handling for LoadConfigOnce() #520

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

JeyJeyGao
Copy link
Contributor

@JeyJeyGao JeyJeyGao commented Jan 31, 2023

Added error handling.
Added unit test.

#516
Resolves #525
Signed-off-by: Junjie Gao [email protected]

@JeyJeyGao JeyJeyGao changed the title test: added pkg/configutil/utils.go unit test cases test: added pkg/configutil/util.go unit test cases Jan 31, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2023

Codecov Report

Merging #520 (2fa2a90) into main (5c27944) will increase coverage by 1.34%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
+ Coverage   35.15%   36.50%   +1.34%     
==========================================
  Files          29       29              
  Lines        1502     1504       +2     
==========================================
+ Hits          528      549      +21     
+ Misses        955      936      -19     
  Partials       19       19              
Impacted Files Coverage Δ
pkg/configutil/util.go 100.00% <ø> (+100.00%) ⬆️
pkg/configutil/once.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JeyJeyGao JeyJeyGao changed the title test: added pkg/configutil/util.go unit test cases test & fix: added pkg/configutil/util.go unit test cases Feb 1, 2023
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@JeyJeyGao JeyJeyGao changed the title test & fix: added pkg/configutil/util.go unit test cases fix: add error handling for LoadConfigOnce() Feb 3, 2023
@JeyJeyGao JeyJeyGao force-pushed the test/pkg_configutil branch from 7f7718b to 14e8173 Compare February 7, 2023 07:42
Signed-off-by: Junjie Gao <[email protected]>
@JeyJeyGao JeyJeyGao force-pushed the test/pkg_configutil branch from 61b5fa8 to 2fa2a90 Compare February 7, 2023 07:55
pkg/configutil/once_test.go Outdated Show resolved Hide resolved
pkg/configutil/once_test.go Outdated Show resolved Hide resolved
pkg/configutil/util_test.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
@JeyJeyGao JeyJeyGao force-pushed the test/pkg_configutil branch from 77bc3af to 860c382 Compare February 8, 2023 01:34
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit 8d52989 into notaryproject:main Feb 8, 2023
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.

missing error handling in pkg/configutil/once.go
4 participants