Skip to content

Conversation

Dreamacro
Copy link
Contributor

#968 has been changed from index filling to direct append, so when making a new slice, we need to declare cap instead of length.

out := make([]Entry, 10)
out = append(out, item)
len(out) // 11

@Dreamacro Dreamacro requested a review from a team as a code owner July 8, 2025 07:09
@Dreamacro Dreamacro mentioned this pull request Jul 8, 2025
Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.59%. Comparing base (1db45db) to head (e1c5c2f).
Report is 1 commits behind head on main.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #975   +/-   ##
=======================================
  Coverage   61.58%   61.59%           
=======================================
  Files         254      254           
  Lines       31420    31420           
=======================================
+ Hits        19350    19352    +2     
+ Misses      10496    10494    -2     
  Partials     1574     1574           
Files with missing lines Coverage Δ
bitswap/message/message.go 78.59% <100.00%> (ø)

... and 6 files with indirect coverage changes

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

@gammazero gammazero merged commit 7206ec2 into ipfs:main Jul 8, 2025
13 checks passed
@Dreamacro Dreamacro deleted the fix-send-want branch July 8, 2025 09:51
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