Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: What to test in a new module

by kcott (Archbishop)
on Jan 29, 2023 at 00:50 UTC ( [id://11150001]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Some-Module/
        Changes
    ...
        README
        t/
            *.t test files here
    
  2. or download this
    #!perl -T
    
    ...
    BEGIN { use_ok('Some::Module') }
    
    diag "Testing Some::Module $Some::Module::VERSION";
    
  3. or download this
    #!perl -T
    
    ...
    is($eval_ok, 1, 'Test eval OK');
    is(defined $sm, 1, 'Test Some::Module object defined');
    isa_ok($sm, 'Some::Module');
    
  4. or download this
    #!perl -T
    
    ...
        my @args = (...);
        is($sm->meth(@args), ...
    }
    
  5. or download this
    #!perl -T
    
    ...
    };
    
    all_pod_files_ok();
    
  6. or download this
    #!perl -T
    
    ...
    };
    
    all_pod_coverage_ok();
    
  7. or download this
    #!perl
    
    ...
    
    is_deeply([manicheck()], [], 'Check files in "MANIFEST" exist.');
    is_deeply([filecheck()], [], 'Check for files not in "MANIFEST" or "MA
    +NIFEST.SKIP".');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found