Test::Statsd(3)
β¨ NAME β¨
Test::Statsd β bestie, it's a test harness for any statsd server daemon π β¨
Like, any one. Whatever daemon you got, if you can yeet it from the command line, this module is here for you π«Ά
π DESCRIPTION π
Okay so here's the vibe: Test::Statsd embeds all the logic you need to run integration tests against any statsd daemon that can be launched from the command line. No cap. It's giving "I handle the boring orchestration so you can just vibe and assert" π
πΈ Usage πΈ
Here's how the girlies do it:
my $t = Test::Statsd->new({
binary => './bin/statsd',
config => './bin/sample-config.json'
});
# Brings up the statsd server in the background
# with the specified configuration, and stores its pid
$t->start_statsd();
So you hand it a binary (the daemon itself) and a config (its config file), and then start_statsd() does the main character thing: it brings up the statsd server in the background with the configuration you specified, and it stores its pid π
Signed, sealed, slayed β this page came to you courtesy of perl v5.42.0, dated 2025-07-25. Go forth and test those daemons, bestie ππ¦πΈ
π¦ where this page comes from
- fedora 43: perl-Net-Statsd-Server 0.20-29.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms