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

xiph / rav1e / 3035
86%

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

pending completion
3035

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.

1625 of 2128 relevant lines covered (76.36%)

0.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3035.1 (RUST_BACKTRACE=1) 28 Mar 2019 09:21AM UTC 0
82.72
Travis Job 3035.1
Source Files on build 3035
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3035
  • 86a74779 on github
  • Prev Build on master (#3032)
  • Next Build on master (#3038)
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