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

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

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2014 03:51PM 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.0.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.1 (2.0.0)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 348
  • Travis Job 348.1
  • e24cd675 on github
  • Prev Job for 2.0.0 on master (#347.1)
  • Next Job for 2.0.0 on master (#349.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

© 2025 Coveralls, Inc