Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 musing on the Monastery: (5)
As of 2015-07-06 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls