Skip to content

op-service: cleanup rw map utils#14474

Merged
protolambda merged 2 commits intodevelopfrom
lock-utils
Feb 21, 2025
Merged

op-service: cleanup rw map utils#14474
protolambda merged 2 commits intodevelopfrom
lock-utils

Conversation

@protolambda
Copy link
Copy Markdown
Contributor

Description

Clean up the RWMap utils:

  • rename Default to CreateIfMissing
  • add SetIfMissing
  • remove unused InitPtrMaybe, which the above funcs do better anyway
  • add Keys / Values slice getter
  • add init from map RWMapFromMap

Tests

Covered new functions + added some checks for previously missing things.

Additional context

Need these funcs for other PRs

@protolambda protolambda added the A-op-service Area: op-service label Feb 20, 2025
@protolambda protolambda requested review from a team as code owners February 20, 2025 22:06
@protolambda protolambda requested review from axelKingsley and tynes and removed request for tynes February 20, 2025 22:06
Co-authored-by: Axel Kingsley <axel.kingsley@gmail.com>
@protolambda protolambda added this pull request to the merge queue Feb 21, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.26%. Comparing base (426176d) to head (8cbfc96).
Report is 18 commits behind head on develop.

❗ There is a different number of reports uploaded between BASE (426176d) and HEAD (8cbfc96). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (426176d) HEAD (8cbfc96)
2 1
cannon-go-tests-32 1 0
cannon-go-tests-64 1 0
contracts-bedrock-tests 1 0
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #14474       +/-   ##
============================================
- Coverage    77.23%   15.26%   -61.98%     
============================================
  Files          178        8      -170     
  Lines        10667      688     -9979     
============================================
- Hits          8239      105     -8134     
+ Misses        2247      571     -1676     
+ Partials       181       12      -169     
Flag Coverage Δ
cannon-go-tests-32 ?
cannon-go-tests-64 ?
contracts-bedrock-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 170 files with indirect coverage changes

Merged via the queue into develop with commit 0a2f43d Feb 21, 2025
46 checks passed
@protolambda protolambda deleted the lock-utils branch February 21, 2025 23:08
Rjected pushed a commit to paradigmxyz/optimism that referenced this pull request Feb 25, 2025
* op-service: cleanup rw map utils

* op-service: fix doc comment

Co-authored-by: Axel Kingsley <axel.kingsley@gmail.com>

---------

Co-authored-by: Axel Kingsley <axel.kingsley@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-op-service Area: op-service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants