[svn:parrot] r42500 - branches/configtests/lib/Parrot/Configure/Step

jkeenan at svn.parrot.org jkeenan at svn.parrot.org
Sat Nov 14 02:28:04 UTC 2009


Author: jkeenan
Date: Sat Nov 14 02:28:03 2009
New Revision: 42500
URL: https://trac.parrot.org/parrot/changeset/42500

Log:
Improve documentation.

Modified:
   branches/configtests/lib/Parrot/Configure/Step/Test.pm

Modified: branches/configtests/lib/Parrot/Configure/Step/Test.pm
==============================================================================
--- branches/configtests/lib/Parrot/Configure/Step/Test.pm	Sat Nov 14 02:27:26 2009	(r42499)
+++ branches/configtests/lib/Parrot/Configure/Step/Test.pm	Sat Nov 14 02:28:03 2009	(r42500)
@@ -20,6 +20,9 @@
 
     $conf = Parrot::Configure::Step::Test->new;
     $conf->include_config_results( $args );
+
+Methods below are inherited from Parrot::Configure:
+
     $conf->add_steps( 'some_package' );
     $serialized = $conf->pcfreeze();
     $conf->options->set( %options );
@@ -28,10 +31,11 @@
 
 =head1 DESCRIPTION
 
-This module is a wrapper around Parrot::Configure to be used for testing of
-individual configuration steps once F<Configure.pl> has run.  It inherits
-C<Parrot::Configure::new()> -- the Parrot::Configure constructor -- and all
-Parrot::Configure methods.  It adds just one method:
+This module is a close simulation of Parrot::Configure to be used for testing
+of individual configuration steps once F<Configure.pl> has run.  Its
+constructor is structured in the same way as C<Parrot::Configure::new()> --
+the Parrot::Configure constructor -- and inherits all Parrot::Configure
+methods.  It adds just one method:
 C<Parrot::Configure::Step::Test::include_config_results()>.  This method
 populates the C<data> section of the Parrot::Configure object's data structure
 with the results of Parrot configuration, I<i.e.,> C<%PConfig> from
@@ -39,6 +43,8 @@
 
 =head2 Rationale
 
+I<You may skip this section on first reading.>
+
 Consider these questions:
 
 =over 4
@@ -97,18 +103,9 @@
 
 =head2 C<new()>
 
-Constructor.  Inherited from Parrot::Configure.  See
-F<lib/Parrot/Configure.pm>.
-
-=head2 C<include_config_results()>
-
-B<Purpose:>
-
-B<Arguments:>
-
-B<Return Value:>
+Constructor, structured the same way as that of Parrot::Configure.
 
-B<Comment:>
+See F<lib/Parrot/Configure.pm>.
 
 =cut
 
@@ -128,11 +125,26 @@
     return $singleton;
 }
 
-#sub new {
-#    my ($class, $args) = @_;
-#    my $self = Parrot::Configure::new( $class, $args );
-#    return $self;
-#}
+=head2 C<include_config_results()>
+
+B<Purpose:>  Populate the Parrot::Configure object with the results of Parrot
+configuration as recorded in C<%Parrot::Config::PConfig>.
+
+B<Arguments:>  One argument: Hash-reference which is the first return value of
+Parrot::Configure::Options::process_options();
+
+    ($args, $step_list_ref) = process_options( {
+        argv => [ ],
+        mode => q{configure},
+    } );
+
+    $conf = Parrot::Configure::Step::Test->new;
+
+    $conf->include_config_results( $args );
+
+B<Return Value:>  None.
+
+=cut
 
 sub include_config_results {
     my ($conf, $args) = @_;


More information about the parrot-commits mailing list