-
Notifications
You must be signed in to change notification settings - Fork 205
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
Coverage for: dataRetriever #5213
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## rc/v1.6.0 #5213 +/- ##
=============================================
+ Coverage 79.41% 79.79% +0.37%
=============================================
Files 691 691
Lines 89197 89197
=============================================
+ Hits 70836 71171 +335
+ Misses 13165 12894 -271
+ Partials 5196 5132 -64
☔ View full report in Codecov by Sentry. |
@@ -81,3 +82,14 @@ func TestBlockChain_SettersAndGettersNilValues(t *testing.T) { | |||
assert.Nil(t, bc.GetCurrentBlockHeader()) | |||
assert.Empty(t, bc.GetCurrentBlockRootHash()) | |||
} | |||
|
|||
func TestBlockChain_SettersInvalidValues(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -81,6 +82,7 @@ func testRequestDataFromHashArray(t *testing.T, requesterType requestHandlerType | |||
t.Run("should work", func(t *testing.T) { | |||
t.Parallel() | |||
|
|||
_ = logger.SetLogLevel("*:TRACE") // coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -308,3 +312,50 @@ func TestShardedData_SearchFirstDataFoundShouldRetResults(t *testing.T) { | |||
} | |||
|
|||
// TODO: Add high load test, reach maximum capacity and inspect RAM usage. EN-6735. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO still relevant? cc @andreibancioiu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not relevant anymore. The "memory tests" partially serve this TODO.
TODO can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos on the following lines:
- dataRetriever/factory/containers/resolversContainer_test.go:295
- dataRetriever/factory/containers/resolversContainer_test.go:272
- dataRetriever/factory/containers/resolversContainer_test.go:254
- dataRetriever/shardedData/shardedData_test.go:231
- dataRetriever/shardedData/shardedData_test.go:81
- dataRetriever/resolvers/validatorInfoResolver_test.go:382
- dataRetriever/interface.go:319
- dataRetriever/topicSender/diffPeerListCreator_test.go:78
- dataRetriever/factory/epochProviders/currentEpochProvidersFactory_test.go:28
- dataRetriever/mock/marshalizerMock.go:35
err := hdReq.RequestDataFromEpoch(epochIdentifier) | ||
assert.Equal(t, core.ErrInvalidIdentifierForEpochStartBlockRequest, err) | ||
}) | ||
t.Run("identifier not found should error should error", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"should error should error"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed
…into dataretriever_tests # Conflicts: # testscommon/storageManager/storageManagerStub.go
0a981e6
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?