Permalink
Browse files

Merge branch 'moo_cond_fail' of https://github.com/wchristian/Devel--…

…Cover into wchristian-moo_cond_fail
  • Loading branch information...
pjcj committed Sep 17, 2012
2 parents 7ade249 + ef3fd42 commit ce61c50683926668521e415fe67ef11475596bf7
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/moose_cond
View
@@ -32,3 +32,18 @@ sub wagh {
return $self->meep->{marp} || 0;
# return $self || 0;
}
+
+package Cover_branch_bug_Moo;
+
+use Moo;
+
+has config => ( is => 'lazy' );
+has config2 => ( is => 'ro' );
+
+__PACKAGE__->new( config => {}, config2 => {} )->trigger;
+__PACKAGE__->new( config => { debug => 1 }, config2 => { debug => 1 } )->trigger;
+
+sub trigger {
+ 1 if $_[0]->config->{debug};
+ 1 if $_[0]->config2->{debug};
+}

0 comments on commit ce61c50

Please sign in to comment.