Skip to content

fix: add error handling for LoadConfigOnce()#520

Merged
priteshbandi merged 4 commits intonotaryproject:mainfrom
JeyJeyGao:test/pkg_configutil
Feb 8, 2023
Merged

fix: add error handling for LoadConfigOnce()#520
priteshbandi merged 4 commits intonotaryproject:mainfrom
JeyJeyGao:test/pkg_configutil

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 junjiegao@microsoft.com

@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
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
@JeyJeyGao JeyJeyGao force-pushed the test/pkg_configutil branch from 7f7718b to 14e8173 Compare February 7, 2023 07:42
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
@JeyJeyGao JeyJeyGao force-pushed the test/pkg_configutil branch from 61b5fa8 to 2fa2a90 Compare February 7, 2023 07:55
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
@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
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
* Added error handling and unit tests.
* WIP for notaryproject#516 
* Resolves notaryproject#525 

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
FeynmanZhou pushed a commit to FeynmanZhou/notation that referenced this pull request May 15, 2025
* Added error handling and unit tests.
* WIP for notaryproject#516 
* Resolves notaryproject#525 

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
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

Comments