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

trotzig / diffux / 348
99%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2014 03:51PM UTC
Jobs 2
Files 32
Run time 43s
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
348

push

travis-ci

lencioni
Constantize some math from SnapshotComparisonImage#pixel_diff_score

In #pixel_diff_score, we take the Euclidean distance between the RGBA
channels of the 2 given colors over the maximum possible Euclidean
distance. This gives us a percentage of how different the two colors
are.

Since the maximum possible Euclidean distance never changes, we can
avoid performing the math (an exponent operation, a multiplication
operation, and a square root operation) each time we want to get the
pixel diff score of two colors. Since this has the potential of
happening many many times, this should be a nice, little performance
win.

Change-Id: I90fd884c2

601 of 609 relevant lines covered (98.69%)

80.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 348.1 (2.0.0) 05 Apr 2014 03:51PM UTC 0
98.69
Travis Job 348.1
2 348.2 (2.1.0) 05 Apr 2014 03:52PM UTC 0
98.69
Travis Job 348.2
Source Files on build 348
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #348
  • e24cd675 on github
  • Prev Build on master (#347)
  • Next Build on master (#349)
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

© 2025 Coveralls, Inc