summaryrefslogtreecommitdiffstats
path: root/t/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-11-21 17:10:52 -0600
committerJesse Luehrs <doy@tozt.net>2010-11-21 17:10:52 -0600
commit8cc54374790f8728eb1be75bbbab33b91ae69838 (patch)
tree5f917bbb63de611b4db10e2de6c27408cf17a214 /t/lib
parent6103054b33641423790d0e39c3e369bf79fe2c9c (diff)
downloaddist-checkconflicts-8cc54374790f8728eb1be75bbbab33b91ae69838.tar.gz
dist-checkconflicts-8cc54374790f8728eb1be75bbbab33b91ae69838.zip
initial implementation
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/01/Bar/Conflicts.pm13
-rw-r--r--t/lib/01/Bar/Conflicts2.pm13
-rw-r--r--t/lib/01/Bar/Conflicts3.pm10
-rw-r--r--t/lib/01/Foo/Conflicts.pm11
-rw-r--r--t/lib/02/Bar.pm7
-rw-r--r--t/lib/02/Bar/Conflicts/Bad.pm13
-rw-r--r--t/lib/02/Bar/Conflicts/Bad2.pm13
-rw-r--r--t/lib/02/Bar/Conflicts/Bad3.pm10
-rw-r--r--t/lib/02/Bar/Conflicts/Good.pm13
-rw-r--r--t/lib/02/Bar/Conflicts/Good2.pm13
-rw-r--r--t/lib/02/Bar/Conflicts/Good3.pm10
-rw-r--r--t/lib/02/Bar/Three.pm7
-rw-r--r--t/lib/02/Bar/Two.pm7
-rw-r--r--t/lib/02/Foo.pm7
-rw-r--r--t/lib/02/Foo/Conflicts/Bad.pm12
-rw-r--r--t/lib/02/Foo/Conflicts/Good.pm12
-rw-r--r--t/lib/02/Foo/Three.pm7
-rw-r--r--t/lib/02/Foo/Two.pm7
18 files changed, 185 insertions, 0 deletions
diff --git a/t/lib/01/Bar/Conflicts.pm b/t/lib/01/Bar/Conflicts.pm
new file mode 100644
index 0000000..65ba026
--- /dev/null
+++ b/t/lib/01/Bar/Conflicts.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Local' => 0.02,
+ },
+ -also => [
+ 'Bar::Conflicts2',
+ ];
+
+1;
diff --git a/t/lib/01/Bar/Conflicts2.pm b/t/lib/01/Bar/Conflicts2.pm
new file mode 100644
index 0000000..a26606c
--- /dev/null
+++ b/t/lib/01/Bar/Conflicts2.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts2;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Also' => 0.06,
+ },
+ -also => [
+ 'Bar::Conflicts3',
+ ];
+
+1;
diff --git a/t/lib/01/Bar/Conflicts3.pm b/t/lib/01/Bar/Conflicts3.pm
new file mode 100644
index 0000000..4c30909
--- /dev/null
+++ b/t/lib/01/Bar/Conflicts3.pm
@@ -0,0 +1,10 @@
+package Bar::Conflicts3;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Also::Also' => 0.12,
+ };
+
+1;
diff --git a/t/lib/01/Foo/Conflicts.pm b/t/lib/01/Foo/Conflicts.pm
new file mode 100644
index 0000000..0d9d7ef
--- /dev/null
+++ b/t/lib/01/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;
diff --git a/t/lib/02/Bar.pm b/t/lib/02/Bar.pm
new file mode 100644
index 0000000..0ce51ad
--- /dev/null
+++ b/t/lib/02/Bar.pm
@@ -0,0 +1,7 @@
+package Bar;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Bad.pm b/t/lib/02/Bar/Conflicts/Bad.pm
new file mode 100644
index 0000000..32a654e
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Bad.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts::Bad;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar' => '0.03',
+ },
+ -also => [
+ 'Bar::Conflicts::Bad2',
+ ];
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Bad2.pm b/t/lib/02/Bar/Conflicts/Bad2.pm
new file mode 100644
index 0000000..9c76862
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Bad2.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts::Bad2;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Two' => '0.02',
+ },
+ -also => [
+ 'Bar::Conflicts::Bad3',
+ ];
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Bad3.pm b/t/lib/02/Bar/Conflicts/Bad3.pm
new file mode 100644
index 0000000..fb80b9e
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Bad3.pm
@@ -0,0 +1,10 @@
+package Bar::Conflicts::Bad3;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Three' => '0.01',
+ };
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Good.pm b/t/lib/02/Bar/Conflicts/Good.pm
new file mode 100644
index 0000000..0f74447
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Good.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts::Good;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar' => '0.01',
+ },
+ -also => [
+ 'Bar::Conflicts::Good2',
+ ];
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Good2.pm b/t/lib/02/Bar/Conflicts/Good2.pm
new file mode 100644
index 0000000..8ba9fd3
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Good2.pm
@@ -0,0 +1,13 @@
+package Bar::Conflicts::Good2;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Two' => '0.01',
+ },
+ -also => [
+ 'Bar::Conflicts::Good3',
+ ];
+
+1;
diff --git a/t/lib/02/Bar/Conflicts/Good3.pm b/t/lib/02/Bar/Conflicts/Good3.pm
new file mode 100644
index 0000000..88b542e
--- /dev/null
+++ b/t/lib/02/Bar/Conflicts/Good3.pm
@@ -0,0 +1,10 @@
+package Bar::Conflicts::Good3;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Bar::Three' => '0.01',
+ };
+
+1;
diff --git a/t/lib/02/Bar/Three.pm b/t/lib/02/Bar/Three.pm
new file mode 100644
index 0000000..8c304fe
--- /dev/null
+++ b/t/lib/02/Bar/Three.pm
@@ -0,0 +1,7 @@
+package Bar::Three;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;
diff --git a/t/lib/02/Bar/Two.pm b/t/lib/02/Bar/Two.pm
new file mode 100644
index 0000000..172ad51
--- /dev/null
+++ b/t/lib/02/Bar/Two.pm
@@ -0,0 +1,7 @@
+package Bar::Two;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;
diff --git a/t/lib/02/Foo.pm b/t/lib/02/Foo.pm
new file mode 100644
index 0000000..9660e6d
--- /dev/null
+++ b/t/lib/02/Foo.pm
@@ -0,0 +1,7 @@
+package Foo;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;
diff --git a/t/lib/02/Foo/Conflicts/Bad.pm b/t/lib/02/Foo/Conflicts/Bad.pm
new file mode 100644
index 0000000..1cbf30f
--- /dev/null
+++ b/t/lib/02/Foo/Conflicts/Bad.pm
@@ -0,0 +1,12 @@
+package Foo::Conflicts::Bad;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Foo' => 0.03,
+ 'Foo::Two' => 0.02,
+ 'Foo::Three' => 0.01,
+ };
+
+1;
diff --git a/t/lib/02/Foo/Conflicts/Good.pm b/t/lib/02/Foo/Conflicts/Good.pm
new file mode 100644
index 0000000..f40a955
--- /dev/null
+++ b/t/lib/02/Foo/Conflicts/Good.pm
@@ -0,0 +1,12 @@
+package Foo::Conflicts::Good;
+use strict;
+use warnings;
+
+use Dist::CheckConflicts
+ -conflicts => {
+ 'Foo' => 0.01,
+ 'Foo::Two' => 0.01,
+ 'Foo::Three' => 0.01,
+ };
+
+1;
diff --git a/t/lib/02/Foo/Three.pm b/t/lib/02/Foo/Three.pm
new file mode 100644
index 0000000..b180934
--- /dev/null
+++ b/t/lib/02/Foo/Three.pm
@@ -0,0 +1,7 @@
+package Foo::Three;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;
diff --git a/t/lib/02/Foo/Two.pm b/t/lib/02/Foo/Two.pm
new file mode 100644
index 0000000..7a1daff
--- /dev/null
+++ b/t/lib/02/Foo/Two.pm
@@ -0,0 +1,7 @@
+package Foo::Two;
+use strict;
+use warnings;
+
+our $VERSION = 0.02;
+
+1;