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

projecthydra-labs / hydra-works / 711 / 1
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v0.11.0
DEFAULT BRANCH: master
Ran 07 May 2016 03:10AM UTC
Files 33
Run time 1s
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

07 May 2016 03:07AM UTC coverage: 99.074% (+0.5%) from 98.611%
2.2

push

travis-ci

jeremyf
Extracting VirusCheckService from module mixin

One of the major disadvantages of module mixins is that several methods
often get defined on the object. This greatly increases the chance of
method collisions if lots of mixins are used.

So, while preserving much of the outward interface of the
`Hydra::Works::VirusCheck`'s validation, I'm extracting a collaborating
class that can do the heavy lifting against the file.

This involved a bit of additional refactoring as I was encountering
challenges with ClamAV definitions. By relying also on dependency
injection of the system virus scanner, I can more easily test each
piece of the anti-virus process in better isolation.

642 of 648 relevant lines covered (99.07%)

32.25 hits per line

Source Files on job 711.1 (2.2)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 711
  • Travis Job 711.1
  • c06bcf15 on github
  • Prev Job for 2.2 on extracting-collaborating-class (#709.1)
  • Next Job for 2.2 on extracting-collaborating-class (#713.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