summaryrefslogtreecommitdiff
path: root/t/generate
diff options
context:
space:
mode:
Diffstat (limited to 't/generate')
-rwxr-xr-xt/generate/basic.t9
-rwxr-xr-xt/generate/output.t9
-rwxr-xr-xt/generate/self.t9
3 files changed, 9 insertions, 18 deletions
diff --git a/t/generate/basic.t b/t/generate/basic.t
index c5ead59..52f5c83 100755
--- a/t/generate/basic.t
+++ b/t/generate/basic.t
@@ -2,7 +2,7 @@
#
# Tests for the App::DocKnot::Generate module API.
#
-# Copyright 2013, 2016-2018 Russ Allbery <rra@cpan.org>
+# Copyright 2013, 2016-2019 Russ Allbery <rra@cpan.org>
#
# SPDX-License-Identifier: MIT
@@ -18,10 +18,7 @@ use Test::RRA qw(is_file_contents);
use Test::More;
# Load the modules.
-BEGIN {
- use_ok('App::DocKnot');
- use_ok('App::DocKnot::Generate');
-}
+BEGIN { use_ok('App::DocKnot::Generate') }
# We have a set of test cases in the data directory. Each of them contains
# metadata and output directories.
@@ -48,4 +45,4 @@ for my $test (@tests) {
}
# Check that we ran the correct number of tests.
-done_testing(2 + scalar(@tests) * 4);
+done_testing(1 + scalar(@tests) * 4);
diff --git a/t/generate/output.t b/t/generate/output.t
index 8478cf1..11e8e3d 100755
--- a/t/generate/output.t
+++ b/t/generate/output.t
@@ -3,7 +3,7 @@
# Test the generate_output method. This doubles as a test for whether the
# package metadata is consistent with the files currently in the distribution.
#
-# Copyright 2016, 2018 Russ Allbery <rra@cpan.org>
+# Copyright 2016, 2018-2019 Russ Allbery <rra@cpan.org>
#
# SPDX-License-Identifier: MIT
@@ -19,13 +19,10 @@ use File::Temp;
use Perl6::Slurp;
use Test::RRA qw(is_file_contents);
-use Test::More tests => 8;
+use Test::More tests => 7;
# Load the module.
-BEGIN {
- use_ok('App::DocKnot');
- use_ok('App::DocKnot::Generate');
-}
+BEGIN { use_ok('App::DocKnot::Generate') }
# Initialize the App::DocKnot object using the default metadata path.
my $metadata_path = File::Spec->catfile(getcwd(), 'docs', 'metadata');
diff --git a/t/generate/self.t b/t/generate/self.t
index b4ac0ea..352d0c2 100755
--- a/t/generate/self.t
+++ b/t/generate/self.t
@@ -2,7 +2,7 @@
#
# Test generated files against the files included in the package.
#
-# Copyright 2016, 2018 Russ Allbery <rra@cpan.org>
+# Copyright 2016, 2018-2019 Russ Allbery <rra@cpan.org>
#
# SPDX-License-Identifier: MIT
@@ -15,13 +15,10 @@ use lib 't/lib';
use File::Spec;
use Test::RRA qw(is_file_contents);
-use Test::More tests => 6;
+use Test::More tests => 5;
# Load the module.
-BEGIN {
- use_ok('App::DocKnot');
- use_ok('App::DocKnot::Generate');
-}
+BEGIN { use_ok('App::DocKnot::Generate') }
# Initialize the App::DocKnot object using the default metadata path.
my $docknot = App::DocKnot::Generate->new();