12 has 'thing' => ( is => 'rw' );
13 has '_private' => ( is => 'rw' );
20 use MooseX::FollowPBP;
22 has 'thing' => ( is => 'rw' );
23 has '_private' => ( is => 'rw' );
30 use MooseX::FollowPBP;
32 has 'ro' => ( is => 'ro' );
33 has 'thing' => ( is => 'rw', reader => 'thing' );
34 has 'thing2' => ( is => 'rw', writer => 'set_it' );
41 use MooseX::FollowPBP;
43 has 'bare' => ( is => 'bare' );
47 ok( ! Standard->can('get_thing'), 'Standard->get_thing() does not exist' );
48 ok( ! Standard->can('set_thing'), 'Standard->set_thing() does not exist' );
49 ok( ! Standard->can('_get_private'), 'Standard->_get_private() does not exist' );
50 ok( ! Standard->can('_set_private'), 'Standard->_set_private() does not exist' );
52 ok( PBP->can('get_thing'), 'PBP->get_thing() exists' );
53 ok( PBP->can('set_thing'), 'PBP->set_thing() exists' );
54 ok( PBP->can('_get_private'), 'PBP->_get_private() exists' );
55 ok( PBP->can('_set_private'), 'PBP->_set_private() exists' );
57 ok( PBP3->can('get_ro'), 'PBP3->get_ro exists' );
58 ok( ! PBP3->can('set_ro'), 'PBP3->set_ro does not exist' );
59 ok( ! PBP3->can('get_thing'), 'PBP3->get_thing does not exist' );
60 ok( ! PBP3->can('set_thing'), 'PBP3->set_thing does not exist' );
61 ok( ! PBP3->can('get_thing2'), 'PBP3->get_thing2 does not exist' );
62 ok( ! PBP3->can('set_thing2'), 'PBP3->set_thing2 does not exist' );
64 ok( !PBP4->can('get_bare'), 'is => bare attribute is respected' );
65 ok( !PBP4->can('set_bare'), 'is => bare attribute is respected' );