Test::Lintian::Hooks(3)
omg hi bestie π you have stumbled into the group chat for Test::Lintian::Hooks(3) β that's the hook-routines page straight out of the Debian Package Checker manual. pull up a chair, we're gonna get you fluent in this in like four minutes, fr fr.
β¨ NAME β¨
Test::Lintian::Hooks β hook routines for the test runners π
π SYNOPSIS π
use Test::Lintian::Hooks qw(sed_hook);
sed_hook('script.sed', 'input.file');
π DESCRIPTION π
So like, this module is a lil collection of various hook routines for the test runners. That's the whole vibe. No secret lore, just hooks. π¦
πΈ FUNCTIONS πΈ
sed_hook(SCRIPT, SUBJECT, OUTPUT)β runs the parsersedon the fileSUBJECT, using the instructions it finds inSCRIPT, and drops the result into the fileOUTPUT. Three files, in, through, out. slay. β¨sort_lines(UNSORTED, SORTED)β takes the fileUNSORTEDand sorts it line by line, then puts the result in the fileSORTED. and honestly? sorting lines is self-care. π§calibrate(SCRIPT, ACTUAL, EXPECTED, CALIBRATED)β runs the calibration scriptSCRIPTwith three arguments:EXPECTED,ACTUALandCALIBRATEDβ all three of them file paths. β οΈ but babe, listen, this is the sneaky part: the order of arguments in this function's call corresponds to the bookkeeping logic ofACTUALvsEXPECTED, and the order for the script is different. same four things, different lineup β do not get caught slipping on this one. πfind_missing_prerequisites(TEST_CASE)β returns a string containing missing dependencies (if there are any, bestie, if there are any) that would be necessary to actually run the test described by hashDESC. and yes the function takesTEST_CASEwhile the description says hashDESCβ that's what the page says, we are not rewriting the source, iykyk. π
okay that's the whole page, you ate it, no crumbs left π
this lil love letter to your terminal is from Lintian v2.139.0ubuntu2 and it's dated 2026-10-08, and it lives at Test::Lintian::Hooks(3). periodt. π
π¦ where this page comes from
- ubuntu stonking: lintian 2.139.0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms