Test2::...e::Meta(3pm)

✨ NAME ✨

Test2::Compare::Meta β€” Check library for meta-checks πŸ’–

Okay bestie, this is the Test2::Compare::Meta page β€” the manual header files it under Test2::...e::Meta(3pm) and it lives in the Perl Programmers Reference Guide. It’s giving β€œdeep-comparison side quest” energy, and honestly? Iconic.


🌸 DESCRIPTION 🌸

Sometimes in a deep comparison you want to run extra checks against an item down the chain. You know the vibe: you’re already comparing the big thing, but this one little item needs its own spotlight moment.

This library allows you to write a check that verifies several attributes of an item. Slay. It’s literally a little checkup for one item, no cap.


πŸ” DEFINED CHECKS πŸ”

These are the checks the library defines, bestie β€” each one is a different little vibe check for the item:

  • blessed β€” Lets you check that an item is blessed, and that it is blessed into the expected class. Classy behavior only. πŸŽ€
  • reftype β€” Lets you check the reftype of the item. Gotta know what kind of ref you’re dealing with. πŸ”₯
  • isa β€” Lets you check if the item is an instance of the expected class. β€œAre you one of us?” energy. πŸ‘‘
  • this β€” Lets you check the item itself. Like, the actual item. Main character. ⭐
  • size β€” Lets you check the size of the item. For an arrayref this is the number of elements. For a hashref this is the number of keys. For everything else this is undef. That last part is important, bestie β€” everything else gets undef. πŸ’€

πŸ”— SOURCE πŸ”—

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/.

Go off, open source. πŸ’…


🫢 MAINTAINERS 🫢

  • Chad Granum <exodist@cpan.org>

✨ AUTHORS ✨

  • Chad Granum <exodist@cpan.org>

Copyright Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


πŸ’– Final vibe check: this page is from perl v5.42.3, dated 2026-11-03, and yes β€” it’s filed as Test2::...e::Meta(3pm). Bye bestie! πŸ¦‹

πŸ“¦ where this page comes from