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

xiph / rav1e / 3035 / 1
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2019 09:21AM UTC
Files 30
Run time 2s
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

28 Mar 2019 08:56AM UTC coverage: 82.721% (+0.5%) from 82.177%
RUST_BACKTRACE=1

push

travis-ci

rom1v
Return blocks by reference, not by value

The methods above_of(), left_of() and above_left_of() returned the
matching block by value, or a default block if the offset resulted in a
block outside boundaries.

The Block structure is quite big (std::mem::size_of::<Block>() == 120).
For reading a field, it is probably not optimal to return a whole Block
copy or a new default block (although the compiler might optimize such
accesses).

Moreover, the boundaries checks were often redundant, because already
done by the callers.

Instead, let the callers check boundaries and return a reference to the
matching block.

11016 of 13317 relevant lines covered (82.72%)

0.83 hits per line

Source Files on job 3035.1 (RUST_BACKTRACE=1)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1167
  • Travis Job 3035.1
  • 86a74779 on github
  • Prev Job for RUST_BACKTRACE=1 on master (#3032.1)
  • Next Job for RUST_BACKTRACE=1 on master (#3038.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