Skip to content

cli/config/credentials: add test for save being idempotent - #5570

Merged
thaJeztah merged 2 commits into
docker:masterfrom
thaJeztah:credentials_coverage
Oct 22, 2024
Merged

cli/config/credentials: add test for save being idempotent#5570
thaJeztah merged 2 commits into
docker:masterfrom
thaJeztah:credentials_coverage

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

cil/config/credentials: remove newStore() test-utility

This function was names slightly confusing, as it returns a fakeStore,
and it didn't do any constructing, so didn't provide value above just
constructing the type.

I'm planning to add more functionality to the fakeStore, but don't want
to maintain a full-fledged constructor for all of that, so let's remove
this utility.

cli/config/credentials: add test for save being idempotent

Test case for d3f6867

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This function was names slightly confusing, as it returns a fakeStore,
and it didn't do any constructing, so didn't provide value above just
constructing the type.
I'm planning to add more functionality to the fakeStore, but don't want
to maintain a full-fledged constructor for all of that, so let's remove
this utility.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter

codecov-commenter commented Oct 22, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.59%. Comparing base (0ab0eca) to head (3c78069).
Report is 10 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #5570 +/- ##
==========================================
+ Coverage 59.56% 59.59% +0.02% 
==========================================
Files 345 345 Lines 29106 29103 -3 ==========================================
+ Hits 17338 17343 +5 + Misses 10796 10790 -6 + Partials 972 970 -2 

Comment threadcli/config/credentials/file_store_test.go Outdated
Test case for d3f6867
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah merged commit 61baf2a into docker:masterOct 22, 2024
@thaJeztah
thaJeztah deleted the credentials_coverage branch October 22, 2024 14:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thaJeztah@codecov-commenter@laurazard