aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-07-29 02:43:15 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:16:32 +0200
commit604495ee8b686e14b1ef26eca9681aa06ce796cb (patch)
treea8ab342eb7f6a92d506059161e35ef8e40f822ef /lib
parentbed0545e508167674dd785f4dbf098590963e261 (diff)
Add tests for reading a List of files
Diffstat (limited to 'lib')
-rw-r--r--lib/Config/Parser/NULL.pm66
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Config/Parser/NULL.pm6 b/lib/Config/Parser/NULL.pm6
index ff384b1..5113043 100644
--- a/lib/Config/Parser/NULL.pm6
+++ b/lib/Config/Parser/NULL.pm6
@@ -9,18 +9,18 @@ use Config::Parser;
#| Hash to return when calling `read`.
class Config::Parser::NULL is Config::Parser
{
- my $mock-config;
+ my %mock-config = ();
#| Return the mock config, skipping the file entirely.
method read(Str $path --> Hash)
{
- $mock-config;
+ %mock-config;
}
#| Set the mock config to return on read.
method set-config(Hash $config)
{
- $mock-config = $config;
+ %mock-config = $config;
}
#| Return True, as if writing succeeded.