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

trotzig / diffux / 348 / 2
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2014 03:52PM UTC
Files 32
Run time 3s
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

05 Apr 2014 03:42PM UTC coverage: 98.686% (+0.002%) from 98.684%
2.1.0

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%)

40.4 hits per line

Source Files on job 348.2 (2.1.0)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 348
  • Travis Job 348.2
  • e24cd675 on github
  • Prev Job for 2.1.0 on master (#347.2)
  • Next Job for 2.1.0 on master (#349.2)
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