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

rspec / rspec-core / 1614 / 8
81%
master: 81%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2013 07:51AM UTC
Files 39
Run time –
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

10 Aug 2013 07:48AM UTC coverage: 82.233%. Remained the same
rbx-19mode

push

travis-ci

dchelimsky
minor optimization

* Array(list) covers all necessary cases

    $ irb
    2.0.0p0 :001 > Array(nil)
     => []
    2.0.0p0 :002 > Array(:foo)
     => [:foo]
    2.0.0p0 :003 > Array([:foo,:bar])
     => [:foo, :bar]

* Array(list) is considerably faster than list.flatten.compact

    $ time ruby -e "100000.times { [nil].flatten.compact; [:foo].flatten.compact; [[:foo, :bar]].flatten.compact }"
    real 0m0.465s
    user 0m0.461s
    sys  0m0.003s
    $ time ruby -e "100000.times { Array(nil); Array(:foo); Array([:foo, :bar]) }"
    real 0m0.117s
    user 0m0.113s
    sys  0m0.003s

1893 of 2302 relevant lines covered (82.23%)

421.44 hits per line

Source Files on job 1614.8 (rbx-19mode)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1614
  • Travis Job 1614.8
  • 9f2cb32c on github
  • Prev Job for rbx-19mode on master (#1612.8)
  • Next Job for rbx-19mode on master (#1615.8)
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