Skip to content

Change mock implementation to use store.KVStore instead of maps#146

Merged
tzdybal merged 13 commits intoevstack:mainfrom
jbowen93:revert-2-revert-1-disk_storage_mock_DALC_134
Oct 10, 2021
Merged

Change mock implementation to use store.KVStore instead of maps#146
tzdybal merged 13 commits intoevstack:mainfrom
jbowen93:revert-2-revert-1-disk_storage_mock_DALC_134

Conversation

@jbowen93
Copy link
Copy Markdown
Contributor

@jbowen93 jbowen93 commented Oct 9, 2021

Resolves #134

Apologies for messed up commit history, need to make sure to squash before merging!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 9, 2021

Codecov Report

Merging #146 (bb0953c) into main (8a15588) will decrease coverage by 0.39%.
The diff coverage is 57.97%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #146      +/-   ##
==========================================
- Coverage   57.47%   57.07%   -0.40%     
==========================================
  Files          24       24              
  Lines        1987     2127     +140     
==========================================
+ Hits         1142     1214      +72     
- Misses        729      786      +57     
- Partials      116      127      +11     
Impacted Files Coverage Δ
state/executor.go 69.44% <ø> (ø)
types/serialization.go 58.82% <0.00%> (-2.91%) ⬇️
node/node.go 52.87% <52.56%> (-6.95%) ⬇️
da/mock/mock.go 68.96% <52.63%> (-31.04%) ⬇️
p2p/client.go 67.97% <57.14%> (+0.50%) ⬆️
p2p/gossip.go 85.24% <91.66%> (+3.42%) ⬆️
node/aggregator.go 68.62% <100.00%> (+1.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e58172...bb0953c. Read the comment docs.

@jbowen93
Copy link
Copy Markdown
Contributor Author

jbowen93 commented Oct 9, 2021

@tzdybal I don't see an option for me to assign a Reviewer so pinging you here.

Copy link
Copy Markdown
Contributor

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

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

Thanks for your submission!
This looks really good - I left some small comments.

@tzdybal tzdybal mentioned this pull request Oct 9, 2021
3 tasks
Copy link
Copy Markdown
Contributor

@tzdybal tzdybal left a comment

Choose a reason for hiding this comment

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

👍

Co-authored-by: Tomasz Zdybał <tomek@zdybal.lap.pl>
@tzdybal tzdybal merged commit 59ab23b into evstack:main Oct 10, 2021
tzdybal pushed a commit that referenced this pull request Oct 12, 2021
* update `MockDataAvailabilityLayerClient` to use `KVStore` instead of maps
* ensure that `KVStore` is passed to `Init` in the tests

Resolves #134.
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.

Add disk storage to mock DALC

3 participants