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

preaction / Beam-Wire / 81
95%

Build:
DEFAULT BRANCH: master
Ran 28 Feb 2016 04:22AM UTC
Jobs 1
Files 1
Run time 0s
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
81

push

travis-ci

preaction
add bare services

Bare services allow us to interleave metadata and arguments when a class
takes a hash:

    object:
        $class: Class
        arg: value

This makes it easier to provide a "default" class:

    use Scalar::Util qw( blessed );
    my $obj = $wire->get( 'object' );
    if ( !blessed $obj ) {
        $obj = Class->new( %$obj );
    }

Bare services also allow us to have arrays and hashes of objects:

    array:
        - $class: Class
          arg: value
        - $class: Class
          arg: value

    hash:
        key:
            $class: Class
            arg: value
        key:
            $class: Class
            arg: value

Fixes #43

251 of 268 relevant lines covered (93.66%)

66.46 hits per line

Jobs
ID Job ID Ran Files Coverage
11 81.11 (COVERAGE=1) 28 Feb 2016 04:22AM UTC 0
93.66
Travis Job 81.11
Source Files on build 81
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #81
  • 564896f8 on github
  • Prev Build on master (#80)
  • Next Build on master (#82)
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