Protoco...is::Test(3)

πŸ“¦ version 1.0021, in alpine 3.24

πŸ’… NAME

okay so bestie, this is Protocol::Redis::Test β€” it's literally a lil box of reusable tests for stuff that implements Protocol::Redis πŸŽ€ no cap, that's the whole vibe.


✨ SYNOPSIS ✨

here's the whole group-chat receipt, copy it exactly, don't @ me:

use Test::More tests => 1;
use Protocol::Redis::Test;

# Test Protocol::Redis API
protocol_redis_ok 'Protocol::Redis', 1;

like, you're loading up Test::More with exactly 1 test, then pulling in Protocol::Redis::Test, then hitting the one function it gives you. iconic. slay. ✨


🌸 DESCRIPTION 🌸

So the entire point of this module is reusable tests for Protocol::Redis implementations πŸ’– that's it, that's the girlypop. You don't write your own check-everything test suite, you just borrow hers. lowkey the nicest thing anyone's ever done for you.


πŸ¦‹ FUNCTIONS πŸ¦‹

πŸ’… protocol_redis_ok

the one and only, calling it looks like this:

protocol_redis_ok $redis_class, 1;

what it actually does πŸ”₯

It checks if the $redis_class implementation of Protocol::Redis meets API version 1 πŸ‘‘ that's the vibe check, and if it passes, you're good to go, fr fr.

🫢 so like, $redis_class is your class name (a placeholder, obvi), and that 1 is the API version it's gotta match. don't change the number unless you know something I don't. πŸ’€

🌈 SEE ALSO 🌈

  • Protocol::Redis β€” the actual main character this whole page is about, go read that one next bestie 😌

Copyright (C) 2010-2024, Serhii Zasenko πŸ’œ

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0. (yep, free, legal, and cute of them ngl ✨)


and that's the whole page!! 🌸 this lil doc dropped with perl v5.42.2, dated 2026-02-15, filed under Protoco...is::Test(3) β€” ok bye bestie love u, go write some tests πŸ’–πŸ¦‹πŸ“

πŸ“¦ where this page comes from