aboutsummaryrefslogtreecommitdiff
path: root/t/conf02.t
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-03-02 09:37:17 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-03-02 10:41:21 +0200
commitd84f9c8d98e07b410b387140084bcd1ad02fed29 (patch)
tree1dd6cd365951fdb6e7a7b19321403abf877429e6 /t/conf02.t
parentbdc4ce4b346a08c67969b848ec69996ea9c46e00 (diff)
downloadbeam-d84f9c8d98e07b410b387140084bcd1ad02fed29.tar.gz
beam-d84f9c8d98e07b410b387140084bcd1ad02fed29.tar.bz2
Rework configuration class to support optional "locations" mode.
When location => 1 is passed to the constructor, the created class will store source locations along with the configuration variables. * lib/App/Beam/Config.pm (error): Use the passed Locus object. (new): New kw parameter "locations" controls whether source locations are stored along with each configuration variable. (check_mandatory): Handle wildcard parameter declarations. (readconfig): Pass locations to all functions as Locus objects. Store them if required. (get): Rewrite to retrieve locations on request. (isset,issection,isscalar): Rewrite. (set): Handle the locations mode. (names_of): New method. * lib/App/Beam/Config/Locus.pm: New file. * MANIFEST: Add new files. * lib/App/Beam.pm (parameters): Declare "backend" and "item" sections. (new): Enable locations mode. (logger, logger_line): Redo to make use of the passed Locus object. (load_backends): New method. * t/TestConfig.pm: Rewrite. * t/conf01l.t: New test case. * t/conf02l.t: New test case. * t/conf03l.t: New test case. * t/conf04l.t: New test case. * t/conf05l.t: New test case. * t/locus.t: New test case.
Diffstat (limited to 't/conf02.t')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.