Skip to content

Conversation

macladson
Copy link
Member

While working on sigp/lighthouse#8032, there are a couple of situations where we initialize a VariableList into a full list of all 0's. Having to handle errors in this case when none can occur is a bit annoying so a dedicated function to do this helps to avoid an ugly expect. This was suggested by Michael here: sigp/lighthouse#8032 (comment)

This is the VariableList equivalent of the from_elem method on FixedVector. At a later time it might be worth considering renaming the from_elem method to repeat for consistency.

Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.45%. Comparing base (44deb75) to head (424c60e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   58.84%   59.45%   +0.61%     
==========================================
  Files           8        8              
  Lines         294      296       +2     
==========================================
+ Hits          173      176       +3     
+ Misses        121      120       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@macladson macladson mentioned this pull request Sep 24, 2025
@michaelsproul michaelsproul merged commit 4e48d9a into sigp:main Sep 30, 2025
7 checks passed
@macladson macladson deleted the repeat-full branch September 30, 2025 08:26
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