in reply to Automation of testing of Moose class structure

The fact that
has raw_data => (is => 'ro');

creates a read only attribute called raw_data is already tested in the test suite of Moose itself. Test only the public methods of your classes.

(Well, you should also test complex type constraints etc., but you get the idea.)

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Automation of testing of Moose class structure
by nysus (Parson) on Feb 10, 2017 at 22:33 UTC

    But let's say I accidentally change the wrong attribute property. Moose has no knowledge of what my intentions are.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks