Commits

Toby Inkster committed ce2d7d8

POD coverage

Comments (0)

Files changed (4)

lib/Web/ID/Certificate/Generator.pm

 
 =over
 
-=item C<< generator(%options) >>
+=item C<< generate(%options) >>
 
 Generates a brand new WebID-enabled certificate.
 

lib/Web/ID/SAN/Email.pm

 	$Web::ID::SAN::Email::VERSION   = '0.001';
 	
 	eval {
+		no warnings;
 		require WWW::Finger;
 		WWW::Finger->VERSION('0.100');
 		$WWW_Finger++;
 	my ($orig, $self) = @_;
 	my @keys = $self->$orig;
 	
-	my $results = $self->query->execute( $self->model );
+	my $results = $self->_query->execute( $self->model );
 	RESULT: while (my $result = $results->next)
 	{
 		my $modulus = make_bigint_from_node(
 	return @keys;
 };
 
-sub query
+sub _query
 {
 	my ($self) = @_;
 	my $email = 'mailto:' . $self->value;

lib/Web/ID/SAN/URI.pm

 	my ($orig, $self) = @_;
 	my @keys = $self->$orig;
 	
-	my $results = $self->query->execute( $self->model );
+	my $results = $self->_query->execute( $self->model );
 	RESULT: while (my $result = $results->next)
 	{
 		# trim any whitespace around modulus
 	return @keys;
 };
 
-sub query
+sub _query
 {
 	my ($self) = @_;
 	return RDF::Query->new( sprintf(<<'SPARQL', (($self->uri_object)x4)) );

xt/02pod_coverage.t

 use Test::More;
 use Test::Pod::Coverage;
 
-my @modules = qw(Web::ID);
+my @modules =
+	map { s[^lib/][]; s[.pm$][]; s[/][::]g; $_ }
+	my @_x = qw(
+		lib/Plack/Middleware/Auth/WebId.pm
+		lib/Web/ID/Certificate/Generator.pm
+		lib/Web/ID/Certificate.pm
+		lib/Web/ID/FAQ.pod
+		lib/Web/ID.pm
+		lib/Web/ID/RSAKey.pm
+		lib/Web/ID/SAN/Email.pm
+		lib/Web/ID/SAN.pm
+		lib/Web/ID/SAN/URI.pm
+		lib/Web/ID/Types.pm
+		lib/Web/ID/Util.pm
+	);
 pod_coverage_ok($_, "$_ is covered")
 	foreach @modules;
 done_testing(scalar @modules);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.