aboutsummaryrefslogtreecommitdiff
path: root/t/06-deduce-parser.t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-04 13:46:25 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-12 08:59:13 +0200
commitbd3bc6769547e89dc5d3e255aa4babc2cc5ffe48 (patch)
tree974bf72d443dbf0d1bffea29793becee806b43bc /t/06-deduce-parser.t
parent2d0de9cc3f93f661044f20b55c6a03860e8a0de8 (diff)
Overhaul Config to 3.0.0
Diffstat (limited to 't/06-deduce-parser.t')
-rw-r--r--t/06-deduce-parser.t38
1 files changed, 0 insertions, 38 deletions
diff --git a/t/06-deduce-parser.t b/t/06-deduce-parser.t
deleted file mode 100644
index d1c065a..0000000
--- a/t/06-deduce-parser.t
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /usr/bin/env perl6
-
-use v6.c;
-use Test;
-
-use Config;
-
-plan 4;
-
-my Config $config = Config.new();
-
-subtest "Unknown parser type" => {
- plan 1;
-
- is $config.get-parser-type("config"), "", "Type for plain file without extension";
-};
-
-subtest "Check parser type by file extension" => {
- plan 2;
-
- is $config.get-parser-type("config.yaml"), "yaml", "Should return extension";
- is $config.get-parser-type("config.TOML"), "toml", "Should return lower-cased extension";
-};
-
-subtest "Check parser type for edge-cases defined in get-parser-type" => {
- plan 1;
-
- is $config.get-parser-type("config.yml"), "yaml", "yml --> yaml";
-};
-
-subtest "Returns correct fully qualified module name" => {
- plan 4;
-
- is $config.get-parser("config"), "Config::Parser::", "Empty parser on unknown type";
- is $config.get-parser("config.yaml"), "Config::Parser::yaml", "Extension when available";
- is $config.get-parser("config.TOML"), "Config::Parser::toml", "Lowercased extension";
- is $config.get-parser("config", "Config::Parser::NULL"), "Config::Parser::NULL", "Given string";
-};