Test::...r::Util(3pm)

πŸ“¦
version 0.87 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Test::BDD::Cucumber::Util β€” some functions used throughout the code πŸ’–

Like, it's literally the little helper drawer of the Test::BDD::Cucumber kitchen, bestie. The manual page header calls it Test::...r::Util(3pm) because someone was feeling mysterious, but it's the same thing, promise. 🫢


🌸 VERSION 🌸

version 0.87 β€” she's at 0.87, periodt. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Some functions used throughout the code. ✨

That's it. That's the whole description. Lowkey iconic of her to not over-explain. The functions live in here, they get used all over the place, and the docs are keeping it cute and brief. πŸ’…


πŸŽ€ FUNCTIONS πŸŽ€

🌈 bs_quote

🌈 bs_unquote

bs_quote() "makes safe" strings with backslashed characters in it, so other operations can be done on them. bs_unquote goes the other way. 🎯

So like β€” one of them wraps the risky stuff up so nothing messy happens while you're doing other operations on the string, and the other one unwraps it right back to normal. They're a duo. Main character energy, both of them. πŸ’œ

Here's the whole vibe in code:

$string = "foo \<bar\> <baz>";
$string = bs_quote( $string );
$string =~ s/<([^>]+)>/"$1"/g;
$string = bs_unquote( $string );
$string eq 'foo <bar> "baz"';

Not me reading that and going ohhh she's clever 😭 β€” quote it, do your little s/// thing on it safely, unquote it, and boom, you land on 'foo <bar> "baz"'. Chef's kiss. πŸ”₯


πŸ’– AUTHOR πŸ’–

Peter Sergeant "pete@clueball.com" 🌟


πŸ“œ LICENSE πŸ“œ

Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl

So that's two copyright lines, both of them important, both of them here, no skipping. πŸ“


okay bestie that's the whole page!! πŸ¦‹βœ¨ This little cutie came from version 0.87, documented for perl v5.40.1 on 2025-05-29, so if you're quoting and unquoting in your sleep now, that's between you and your terminal. πŸ’…πŸŽ€

πŸ“¦ where this page comes from