Protoco...is::Test(3)
π 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_classis your class name (a placeholder, obvi), and that1is 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 AND LICENSE π
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
- alpine 3.24: perl-protocol-redis-doc 1.0021-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms