diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-02-16 14:28:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-02-16 16:08:43 +0200 |
commit | e547b7507e6878efdccb744b7d6cd5250c6c69b9 (patch) | |
tree | 89bba96184b32d831e06bafb8ed38bd376cb92e7 /t/config.t | |
parent | 0cd31637a354ba5c0171a5f4ce8243f12739fda4 (diff) | |
download | beam-e547b7507e6878efdccb744b7d6cd5250c6c69b9.tar.gz beam-e547b7507e6878efdccb744b7d6cd5250c6c69b9.tar.bz2 |
Improve config parser. Add more tests.
* MANIFEST: Update.
* lib/App/Beam/Config.pm: Rewrite 'error' as method.
Check for missing mandatory statements.
* t/TestConfig.pm: New file.
* t/conf01.t: New file.
* t/conf02.t: New file.
* t/conf03.t: New file.
* t/config.t: Remove.
* t/f.conf: Remove.
Diffstat (limited to 't/config.t')
-rw-r--r-- | t/config.t | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/t/config.t b/t/config.t deleted file mode 100644 index d965844..0000000 --- a/t/config.t +++ /dev/null @@ -1,12 +0,0 @@ -# -*- perl -*- -use lib 't'; -use strict; -use App::Beam::Config; -use Test; - -plan(tests => 2); - -my $cfg = new App::Beam::Config('t/f.conf'); -ok($cfg->parse() && 1); -my $s = join " ", map { $_->[0] . "=" . $_->[1] } $cfg->flatten(); -ok($s, 'backend.foo.file=a core.retain-interval=10 core.tempdir=/tmp'); |