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

chores(engine-primitives): nit #2068

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

abi87
Copy link
Contributor

@abi87 abi87 commented Oct 14, 2024

Dropped constructor used in unit tests only. Marginally improved test coverage. Consolidated unit tests into table driven unit test.

@abi87 abi87 self-assigned this Oct 14, 2024
@@ -63,18 +63,16 @@ type PayloadAttributes[
ParentBeaconBlockRoot common.Root `json:"parentBeaconBlockRoot"`
}

// NewPayloadAttributes creates a new PayloadAttributes.
func NewPayloadAttributes[
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not really needed and used only in tests. The New method is required by a few interfaces


func TestPayloadAttributes(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

consolidated tests into a single, table driven test

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.20%. Comparing base (c9b579a) to head (989e372).
Report is 1 commits behind head on update-mockery-v2-46-3.

Additional details and impacted files

Impacted file tree graph

@@                    Coverage Diff                     @@
##           update-mockery-v2-46-3    #2068      +/-   ##
==========================================================
- Coverage                   22.24%   22.20%   -0.04%     
==========================================================
  Files                         356      352       -4     
  Lines                       16034    15976      -58     
  Branches                       12        0      -12     
==========================================================
- Hits                         3566     3547      -19     
+ Misses                      12316    12277      -39     
  Partials                      152      152              
Files with missing lines Coverage Δ
...ine-primitives/pkg/engine-primitives/attributes.go 100.00% <100.00%> (+26.19%) ⬆️

... and 4 files with indirect coverage changes

@abi87 abi87 changed the base branch from main to update-mockery-v2-46-3 October 14, 2024 12:55
@abi87 abi87 marked this pull request as ready for review October 15, 2024 07:19
@abi87 abi87 merged commit b998227 into update-mockery-v2-46-3 Oct 15, 2024
16 checks passed
@abi87 abi87 deleted the payload-attributes-minor-simplification branch October 15, 2024 07:19
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.

2 participants