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

Songmu / html-shakan / 57
100%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2017 02:59AM UTC
Jobs 4
Files 17
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
57

Pull #16

travis-ci

web-flow
Add prepend_field() and append_field() to Shakan.

These two methods add fields at the beginning and the end of the fields
list using Mouse's traits feature.

The idea behind these two methods is to be able to easily add fields
without manually unpacking the 'fields' attribute. Something like :

    my $user_form = $form_factory->get_user_form();

    get '/user/new' => sub {
        my ($self, $c) = @_;
        $user_form->prepend_field(Textfield(name => 'user_name'));
        ...
    };

    get '/user/edit/:user_id' => sub {
        my ($self, $c) = @_;
        $user_form->append_field(
          Hiddenfield(name => 'user_name', value => $c->args->{user_id})
        );
        ...
    };
Pull Request #16: Add prepend_field() and append_field() to Shakan.

2 of 2 new or added lines in 1 file covered. (100.0%)

115 of 315 relevant lines covered (36.51%)

17.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
lib/HTML/Shakan/Fields.pm

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
lib/HTML/Shakan/Field/Date.pm
2
100.0
lib/HTML/Shakan/Field/Input.pm
3
100.0
lib/HTML/Shakan/Field/File.pm
10
100.0
lib/HTML/Shakan/Renderer/HTML.pm
12
100.0
lib/HTML/Shakan/Field.pm
15
100.0
lib/HTML/Shakan/Fields.pm
72
100.0
lib/HTML/Shakan.pm
82
100.0
lib/HTML/Shakan/Widgets/Simple.pm
Jobs
ID Job ID Ran Files Coverage
1 57.1 26 Apr 2017 02:59AM UTC 0
36.86
Travis Job 57.1
2 57.2 26 Apr 2017 02:59AM UTC 0
36.86
Travis Job 57.2
3 57.3 26 Apr 2017 02:59AM UTC 0
36.86
Travis Job 57.3
4 57.4 26 Apr 2017 02:59AM UTC 0
36.86
Travis Job 57.4
Source Files on build 57
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #57
  • Pull Request #16
  • PR Base - master (#54)
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