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

gap-system / gap / 10202 / 8
4%
master: 4%

Build:
DEFAULT BRANCH: master
Ran 09 Jul 2019 03:37PM UTC
Files 643
Run time 58s
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

09 Jul 2019 02:53PM UTC coverage: 71.929%. Remained the same
TEST_SUITES=testmanuals

push

travis-ci

ChrisJefferson
Add PositionSortedBy

One thing to point out is that the interface is a bit different from
PositionSorted, which might be confusing: the object you pass in is
*not* a (potential) element of the list, but rather the result of
applying the "by func" to an object (or at least something that looks
like such a result). The reason: first off, replacing the element by its
func value would be the very first thing done by any implementation
anyway. And a typical application of this function is to search for an
object matching a a certain criterion -- say, the first item which is a
list whose first entry is 42. With the current model, one can write

    PositionSortedBy([ "a", "ab" ], 4, Length);

and is not forced to first construct an actual object, like here:

    PositionSortedBy([ "a", "ab" ], "abcd", Length);

In this example, that's a pretty small saving, but in bigger examples,
it can add up. In particular, this is motivated by real world usage
of this function.

213409 of 296696 relevant lines covered (71.93%)

4729837.84 hits per line

Source Files on job 10202.8 (TEST_SUITES=testmanuals)
  • Tree
  • List 0
  • Changed 80
  • Source Changed 3
  • Coverage Changed 80
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2332
  • Travis Job 10202.8
  • 94994522 on github
  • Prev Job for TEST_SUITES=testmanuals on master (#10200.8)
  • Next Job for TEST_SUITES=testmanuals on master (#10203.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