Test::...:Errors(3pm)
π Test::...:Errors β the manual page, bestie edition π
So this is the page for Test::...:Errors, hanging out in the User Contributed Perl Documentation section. It's cute, it's short, and it does exactly one thing: it makes your errors look consistent. Periodt.
β¨ NAME β¨
Test::BDD::Cucumber::Errors β Consistently formatted errors π
πΈ VERSION πΈ
version 0.87 β yeah bestie, we're on the 0.87 timeline π¦
π DESCRIPTION π
Consistently formatted errors.
That's it. That's the whole vibe. Consistent. Errors. Iconic. β¨
π NOTE π
Okay so important, listen up:
This module is not here to help you throw error classes, bestie. Nope. It's just here to give you helpers so certain errors get formatted the same way every single time. That's the whole job. π«Ά
So like, most of the errors you'll actually throw in practice? They're errors about the input test scenarios. And when you're debugging those, it's so helpful to have the location of the error and the context around it. Chef's kiss. π
Maybe in the future these can return error objects. Maybe. Not today. (The author said "perhaps", so we're holding space for that.)
And here's the tea on encoding: all the current uses β as of 2016-02-09 β just pass the results straight to die. So the author decided to UTF8 encode the error message, on the basis that this probably constitutes an application boundary. Which is honestly valid. π
π SYNOPSIS π
Look at her go:
use Test::BDD::Cucumber::Errors qw/parse_error_from_line/;
parse_error_from_line(
"Your input was bad",
$line
);
Import the one thing, hand it a reason and a line, done. Slay.
π₯ PARSER ERRORS π₯
π¦ parse_error_from_line π¦
This one generates a parser error from a Test::BDD::Cucumber::Model::Line object, plus an error reason. Two ingredients, one error. β¨
parse_error_from_line(
"Your input was bad",
$line
);
Like, that's literally it. You give it your reason, you give it your Line, it gives you a formatted parser error. No cap. π
π AUTHOR π
Peter Sergeant "pete@clueball.com" β the icon who wrote this π
β LICENSE β
Copyright 2019-2023, Erik Huelsmann
Copyright 2014-2019, Peter Sergeant; Licensed under the same terms as Perl
Same terms as Perl, bestie. We love a permissive queen. π
And that's the page!! This one came to you from perl v5.40.1, dated 2025-05-29, and it lives at Test::...:Errors(3pm). Go format some errors consistently, you gorgeous genius. Byeeee π«Άβ¨π
π¦ where this page comes from
- debian trixie: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms