whereabouts icon indicating copy to clipboard operation
whereabouts copied to clipboard

Improve string representation of Assignment Error

Open andreaskaris opened this issue 3 years ago • 2 comments

Requires go 1.18 or higher

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Special notes for your reviewer (optional):

Here's the method in the playground: https://go.dev/play/p/cKqAfUKCasJ?v=goprev

new format: Could not allocate IP in range: network: 192.168.1.0/24, start: 192.168.1.2, end: 192.168.1.10
old format: Could not allocate IP in range: ip: 192.168.1.2 / - 192.168.1.10 / range: net.IPNet{IP:net.IP{0xc0, 0xa8, 0x1, 0x0}, Mask:net.IPMask{0xff, 0xff, 0xff, 0x0}}

andreaskaris avatar Apr 03 '23 12:04 andreaskaris

Pull Request Test Coverage Report for Build 4596793331

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 71.397%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/allocate/allocate.go 0 3 0.0%
<!-- Total: 0 3
Files with Coverage Reduction New Missed Lines %
pkg/allocate/allocate.go 1 70.37%
<!-- Total: 1
Totals Coverage Status
Change from base Build 4596273673: -0.1%
Covered Lines: 966
Relevant Lines: 1353

💛 - Coveralls

coveralls avatar Apr 03 '23 12:04 coveralls

/retest

andreaskaris avatar Apr 03 '23 16:04 andreaskaris

Pull Request Test Coverage Report for Build 4596793331

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 71.397%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/allocate/allocate.go 0 3 0.0%
<!-- Total: 0 3
Files with Coverage Reduction New Missed Lines %
pkg/allocate/allocate.go 1 70.37%
<!-- Total: 1
Totals Coverage Status
Change from base Build 4596273673: -0.1%
Covered Lines: 966
Relevant Lines: 1353

💛 - Coveralls

coveralls avatar Oct 07 '24 02:10 coveralls

@andreaskaris, can we close this pr? I think this issue has already been fixed using a.ipnet.String()

mlguerrero12 avatar Oct 11 '24 10:10 mlguerrero12