• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 11300717354
93%
main: 96%

Build:
Build:
LAST BUILD BRANCH: jdc-new-import-preview
DEFAULT BRANCH: main
Ran 11 Oct 2024 11:49PM UTC
Jobs 1
Files 795
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Oct 2024 11:42PM UTC coverage: 93.472%. Remained the same
11300717354

push

github

JoeCohen
Improve algorithm for sorting list of ip addrs

Per Copilot:
The old implementation converts each segment of the IP address to an integer, adds 1000, converts it back to a string, and then joins the segments with spaces. This can be simplified by directly converting the IP address segments to integers and sorting based on those integers.

Explanation
`split('.')`: Splits the IP address into its four segments.
`map(&:to_i)`: Converts each segment to an integer.
`sort_by`: Sorts the IP addresses based on their integer segments.

1 of 1 new or added line in 1 file covered. (100.0%)

27218 of 29119 relevant lines covered (93.47%)

572.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11300717354.1 11 Oct 2024 11:49PM UTC 0
93.47
GitHub Action Run
Source Files on build 11300717354
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11300717354
  • 2213d066 on github
  • Prev Build on main (#11251543389)
  • Next Build on jdc-sort-by_ip (#11300785364)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc