Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Perl Monk, Perl Meditation
 
PerlMonks  

RFC: Tutorial "Introspecting your Moose code using Test Point Callbacks"

by ait (Friar)
on Jan 01, 2011 at 18:16 UTC ( #880012=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package test_class;
    
    ...
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    done_testing();
    
  3. or download this
    aimass@yclt2:~/languages/perl/MooseTest$ prove -v test_class.t
    test_class.t .. 
    ...
    All tests successful.
    Files=1, Tests=5,  0 wallclock secs ( 0.05 usr  0.00 sys +  0.37 cusr 
    + 0.02 csys =  0.44 CPU)
    Result: PASS
    
  4. or download this
    package cond_tp;
    
    ...
    __PACKAGE__->meta->make_immutable;
    1;
    
  5. or download this
    #!/usr/bin/perl                                   
    
    ...
    
    done_testing();
    
  6. or download this
    aimass@yclt2:~/languages/perl/MooseMeta$ export MYDEBUG_LEVEL=5
    aimass@yclt2:~/languages/perl/MooseMeta$ prove -v cond_tp.t
    ...
    Files=1, Tests=2,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.39 cusr 
    + 0.02 csys =  0.45 CPU)
    Result: PASS
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://880012]
Approved by Old_Gray_Bear
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-04-25 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (586 votes), past polls