From 897e73fcd9c1745d4823e6875039a4f29f2bb504 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 2 Jan 2011 08:17:02 -0600 Subject: tests for the also stuff --- t/lib/05/Bar/Conflicts.pm | 13 +++++++++++++ t/lib/05/Bar/Conflicts2.pm | 13 +++++++++++++ t/lib/05/Foo.pm | 5 +++++ t/lib/05/Foo/Conflicts.pm | 11 +++++++++++ 4 files changed, 42 insertions(+) create mode 100644 t/lib/05/Bar/Conflicts.pm create mode 100644 t/lib/05/Bar/Conflicts2.pm create mode 100644 t/lib/05/Foo.pm create mode 100644 t/lib/05/Foo/Conflicts.pm (limited to 't/lib') diff --git a/t/lib/05/Bar/Conflicts.pm b/t/lib/05/Bar/Conflicts.pm new file mode 100644 index 0000000..ffeb56a --- /dev/null +++ b/t/lib/05/Bar/Conflicts.pm @@ -0,0 +1,13 @@ +package Bar::Conflicts; +use strict; +use warnings; + +use Dist::CheckConflicts + -conflicts => { + 'Bar::Local' => 0.02, + }, + -also => [ + 'Foo', + ]; + +1; diff --git a/t/lib/05/Bar/Conflicts2.pm b/t/lib/05/Bar/Conflicts2.pm new file mode 100644 index 0000000..d45754e --- /dev/null +++ b/t/lib/05/Bar/Conflicts2.pm @@ -0,0 +1,13 @@ +package Bar::Conflicts2; +use strict; +use warnings; + +use Dist::CheckConflicts + -conflicts => { + 'Bar::Also' => 0.06, + }, + -also => [ + 'Baz', + ]; + +1; diff --git a/t/lib/05/Foo.pm b/t/lib/05/Foo.pm new file mode 100644 index 0000000..8c4dc16 --- /dev/null +++ b/t/lib/05/Foo.pm @@ -0,0 +1,5 @@ +package Foo; + +sub foo { } + +1; diff --git a/t/lib/05/Foo/Conflicts.pm b/t/lib/05/Foo/Conflicts.pm new file mode 100644 index 0000000..0d9d7ef --- /dev/null +++ b/t/lib/05/Foo/Conflicts.pm @@ -0,0 +1,11 @@ +package Foo::Conflicts; +use strict; +use warnings; + +use Dist::CheckConflicts + -conflicts => { + 'Foo::Thing' => 0.01, + 'Foo::Thing::Sub' => 0.05, + }; + +1; -- cgit v1.2.3-54-g00ecf