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

kv (test): coverage of kv to 83% #3790

Merged
merged 4 commits into from
Jul 19, 2017
Merged

kv (test): coverage of kv to 83% #3790

merged 4 commits into from
Jul 19, 2017

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Jul 18, 2017

Add unit test for kv. PTAL @zimulala @tiancaiamao

@jackysp jackysp changed the title kv: coverage of kv to 83% kv (test): coverage of kv to 83% Jul 18, 2017
@shenli
Copy link
Member

shenli commented Jul 18, 2017

LGTM

err := errors.New("foo")
cfg.SetGetError(err)

store, _, err := newStoreWithBootstrap()
Copy link
Contributor

Choose a reason for hiding this comment

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

Would NewMockStorage work here?
Function newStoreWithBootstrap is time consuming.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, done.

@tiancaiamao
Copy link
Contributor

LGTM

@hanfei1991 hanfei1991 merged commit f187f88 into master Jul 19, 2017
@hanfei1991 hanfei1991 deleted the yusp/kv_unit_tests branch July 19, 2017 03:06
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