table of contents
other versions
- testing 2.9.1
- stretch-backports 2.15.0~bpo9+1
- unstable 2.15.0
Test::Lintian::ConfigFile(3) | Debian Package Checker | Test::Lintian::ConfigFile(3) |
NAME¶
Test::Lintian::ConfigFile -- generic helper routines for colon-delimited configuration filesSYNOPSIS¶
use Test::Lintian::ConfigFile qw(read_config); my $desc = read_config('t/tags/testname/desc');DESCRIPTION¶
Routines for dealing with colon-delimited configuration files.FUNCTIONS¶
- read_config(PATH, HASHREF)
- Reads the configuration file located at PATH into a hash and returns it. When also passed a HASHREF, will fill that instead.
- write_config(TEST_CASE, PATH)
- Write the config described by hash reference TEST_CASE to the file named PATH.
- read_field_from_file(FIELD, FILE)
- Returns the list of lines from file FILE which start with the string FIELD followed by a colon. The string FIELD and the colon are removed from each line.
2019-05-26 | Lintian v2.15.0~bpo9+1 |