aboutsummaryrefslogtreecommitdiff
path: root/lib/Config/Parser/NULL.pm6
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-12 08:54:43 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-12 08:59:21 +0200
commit28e3fa6d3514a560410f514ab8537a2a1206a7f7 (patch)
tree00772a675945ae42b77e29ed04a0abfe3593cb46 /lib/Config/Parser/NULL.pm6
parente06400db23c431808a89609f87f02fda61c56dd4 (diff)
Use rakumod extension
Diffstat (limited to 'lib/Config/Parser/NULL.pm6')
-rw-r--r--lib/Config/Parser/NULL.pm630
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/Config/Parser/NULL.pm6 b/lib/Config/Parser/NULL.pm6
deleted file mode 100644
index 2845e3c..0000000
--- a/lib/Config/Parser/NULL.pm6
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /usr/bin/env false
-
-use v6.d;
-
-use Config::Parser;
-
-#| The Config::Parser::NULL is a parser to mock with for testing purposes.
-#| It exposes an additional method, set-config, so you can set a config
-#| Hash to return when calling `read`.
-unit class Config::Parser::NULL is Config::Parser;
-
-my %mock-config;
-
-#| Return the mock config, skipping the file entirely.
-multi method read(IO() $path --> Hash)
-{
- %mock-config;
-}
-
-#| Set the mock config to return on read.
-method set-config(Hash $config)
-{
- %mock-config = $config;
-}
-
-#| Return True, as if writing succeeded.
-multi method write(IO() $path, Hash $config --> Bool)
-{
- True;
-}