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

Remove duplicated mock store implementations #337

Merged
merged 12 commits into from
Sep 11, 2018

Conversation

egonelbre
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla-signed label Sep 10, 2018
@coveralls
Copy link

coveralls commented Sep 10, 2018

Pull Request Test Coverage Report for Build 3614

  • 13 of 35 (37.14%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 67.139%

Changes Missing Coverage Covered Lines Changed/Added Lines %
storage/teststore/store.go 13 35 37.14%
Files with Coverage Reduction New Missed Lines %
pkg/overlay/cache.go 3 37.9%
Totals Coverage Status
Change from base Build 3612: -0.2%
Covered Lines: 4358
Relevant Lines: 6491

💛 - Coveralls

// Put adds a value to store
func (store *Client) Put(key storage.Key, value storage.Value) error {
store.version++
store.CallCount.Put++
if store.forcedError() {
return errors.New("internal error")
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like you're calling internal error several times, should we extrapolate that ?

@navillasa
Copy link
Contributor

Looks good to me! Ran the tests and things seem fine. Glad about streamlining the internal/test package.

@egonelbre egonelbre merged commit 6ee6f0f into master Sep 11, 2018
@egonelbre egonelbre deleted the remove-internal-test-storage branch September 17, 2018 12:12
Sign up for free to 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.

None yet

4 participants