rack icon indicating copy to clipboard operation
rack copied to clipboard

fix: fix slice init length

Open cuishuang opened this issue 1 year ago • 2 comments

What is the feature/fix?

The intention here should be to initialize a slice with a capacity of length rather than initializing the length of this slice.

The online demo: https://go.dev/play/p/q1BcVCmvidW

Add screenshot or video (optional)

** Any screenshot or video capture using the feature **

Does it has a breaking change?

** Describe the changes and if it has any breaking changes in any feature **

How to use/test it?

** Describe how to test or use the feature **

Checklist

  • [ ] New coverage tests
  • [ ] Unit tests passing
  • [ ] E2E tests passing
  • [ ] E2E downgrade/update test passing
  • [ ] Documentation updated
  • [x] No warnings or errors on Deepsource/Codecov

cuishuang avatar Oct 04 '24 10:10 cuishuang

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 33.17%. Comparing base (01a2ab5) to head (12a0ae5). Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
pkg/manifest1/balancer.go 0.00% 1 Missing :warning:
provider/aws/releases.go 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3742      +/-   ##
==========================================
- Coverage   33.56%   33.17%   -0.39%     
==========================================
  Files         180      182       +2     
  Lines       20253    20540     +287     
==========================================
+ Hits         6797     6814      +17     
- Misses      12309    12578     +269     
- Partials     1147     1148       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 04 '24 10:10 codecov[bot]

@nightfury1204 Hi, could you please review this PR? Thank you!

cuishuang avatar Oct 30 '25 16:10 cuishuang