|
NAMETest::Auto::SubtestsABSTRACTTesting AutomationSYNOPSISpackage main; use Test::Auto; use Test::Auto::Parser; use Test::Auto::Subtests; my $test = Test::Auto->new( 't/Test_Auto_Subtests.t' ); my $parser = Test::Auto::Parser->new( source => $test ); my $subtests = Test::Auto::Subtests->new( parser => $parser ); # execute dynamic subtests # $subtests->standard DESCRIPTIONThis package use the Test::Auto::Parser object to execute a set of dynamic subtests.LIBRARIESThis package uses type constraints from:Test::Auto::Types ATTRIBUTESThis package has the following attributes:parserparser(Parser) This attribute is read-only, accepts "(Parser)" values, and is required. METHODSThis package implements the following methods:attributesattributes() : Any This method registers and executes a subtest which tests the declared attributes.
documentdocument() : Any This method registers and executes a subtest which tests the test document structure.
evaluatorevaluator(Str $context) : Any This method evaluates (using "eval") the context given and returns the result or raises an exception.
exampleexample(Num $number, Str $name, Str $type, CodeRef $callback) : Any This method finds and evaluates (using "eval") the documented example and returns a "Test::Auto::Try" object (see Data::Object::Try). The "try" object can be used to trap exceptions using the "catch" method, and/or execute the code and return the result using the "result" method.
functionsfunctions() : Any This method registers and executes a subtest which tests the declared functions.
inheritsinherits() : Any This method registers and executes a subtest which tests the declared inheritances.
librarieslibraries() : Any This method registers and executes a subtest which tests the declared type libraries.
methodsmethods() : Any This method registers and executes a subtest which tests the declared methods.
packagepackage() : Any This method registers and executes a subtest which tests the declared package.
pluginplugin(Str $name) : Object This method builds, tests, and returns a plugin object based on the name provided.
registryregistry() : InstanceOf["Type::Registry"] This method returns a type registry object comprised of the types declare in the declared type libraries.
routinesroutines() : Any This method registers and executes a subtest which tests the declared routines.
scenarioscenario(Str $name, CodeRef $callback) : Any This method finds and evaluates (using "eval") the documented scenario example and returns a "Test::Auto::Try" object (see Data::Object::Try). The "try" object can be used to trap exceptions using the "catch" method, and/or execute the code and return the result using the "result" method.
standardstandard() : Subtests This method is shorthand which registers and executes a series of other standard subtests.
synopsissynopsis(CodeRef $callback) : Any This method evaluates (using "eval") the documented synopsis and returns a "Test::Auto::Try" object (see Data::Object::Try). The "try" object can be used to trap exceptions using the "catch" method, and/or execute the code and return the result using the "result" method.
tryabletryable(Any @arguments) : InstanceOf["Test::Auto::Try"] This method returns a tryable object which can be used to defer code execution with a try/catch construct.
AUTHORAl Newkirk, "awncorp@cpan.org"LICENSECopyright (C) 2011-2019, Al Newkirk, et al.This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file" <https://github.com/iamalnewkirk/test-auto/blob/master/LICENSE>. PROJECTWiki <https://github.com/iamalnewkirk/test-auto/wiki>Project <https://github.com/iamalnewkirk/test-auto> Initiatives <https://github.com/iamalnewkirk/test-auto/projects> Milestones <https://github.com/iamalnewkirk/test-auto/milestones> Issues <https://github.com/iamalnewkirk/test-auto/issues>
Visit the GSP FreeBSD Man Page Interface. |