Test::Statsd(3)

πŸ“¦
version 0.20 Β· 2 versions
, in fedora 43

✨ 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