diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-05-25 13:57:45 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-05-25 14:02:09 -0500 |
commit | f3b0919453a6a370af34ee6f2e23dc8e0e251b42 (patch) | |
tree | 5a1a4227ac0a3d96ade44750a3ed8e3e3401cff6 /t/50-infer.t | |
parent | bbb409dcc33fe109968c6330b555fa72ab3f8e31 (diff) | |
download | bread-board-declare-f3b0919453a6a370af34ee6f2e23dc8e0e251b42.tar.gz bread-board-declare-f3b0919453a6a370af34ee6f2e23dc8e0e251b42.zip |
make inference explicit
Diffstat (limited to 't/50-infer.t')
-rw-r--r-- | t/50-infer.t | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/t/50-infer.t b/t/50-infer.t index 75879fa..983e1a3 100644 --- a/t/50-infer.t +++ b/t/50-infer.t @@ -48,8 +48,9 @@ use Test::Fatal; use Bread::Board::Declare; has baz => ( - is => 'ro', - isa => 'Baz', + is => 'ro', + isa => 'Baz', + infer => 1, ); } @@ -82,8 +83,9 @@ use Test::Fatal; use Bread::Board::Declare; has baz => ( - is => 'ro', - isa => 'Baz2', + is => 'ro', + isa => 'Baz2', + infer => 1, ); } @@ -115,6 +117,7 @@ use Test::Fatal; has baz => ( is => 'ro', isa => 'Baz2', + infer => 1, dependencies => ['thing'], ); } @@ -164,8 +167,9 @@ use Test::Fatal; ); has quux => ( - is => 'ro', - isa => 'Quux', + is => 'ro', + isa => 'Quux', + infer => 1, ); has foo => ( @@ -177,6 +181,7 @@ use Test::Fatal; has quux2 => ( is => 'ro', isa => 'Quux', + infer => 1, dependencies => ['foo'], ); } @@ -229,8 +234,9 @@ use Test::Fatal; ); has controller => ( - is => 'ro', - isa => 'Controller', + is => 'ro', + isa => 'Controller', + infer => 1, ); } |