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

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

Build:
Build:
LAST BUILD BRANCH: jdc-new-import-preview
DEFAULT BRANCH: main
Ran 11 Oct 2024 11:49PM UTC
Files 795
Run time 31s
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.1

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.

27218 of 29119 relevant lines covered (93.47%)

572.2 hits per line

Source Files on job 11300717354.1
  • Tree
  • List 0
  • Changed 21
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11300717354
  • 2213d066 on github
  • Prev Job for on jdc-sort-by_ip (#11251543389.1)
  • Next Job for on jdc-sort-by_ip (#11300785364.1)
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