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 parser sed on the file SUBJECT, using the instructions it finds in SCRIPT, and drops the result into the file OUTPUT. Three files, in, through, out. slay. ✨
  • sort_lines(UNSORTED, SORTED) β€” takes the file UNSORTED and sorts it line by line, then puts the result in the file SORTED. and honestly? sorting lines is self-care. 🧚
  • calibrate(SCRIPT, ACTUAL, EXPECTED, CALIBRATED) β€” runs the calibration script SCRIPT with three arguments: EXPECTED, ACTUAL and CALIBRATED β€” 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 of ACTUAL vs EXPECTED, 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 hash DESC. and yes the function takes TEST_CASE while the description says hash DESC β€” 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