Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Test2::Compare::Scalar - Representation of a Scalar Ref in deep comparisons

Authors

       Chad Granum <exodist@cpan.org>

Description

       This is used in deep comparisons to represent a scalar reference.

Maintainers

       Chad Granum <exodist@cpan.org>

Name

       Test2::Compare::Scalar - Representation of a Scalar Ref in deep comparisons

Source

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

Synopsis

           my $sr = Test2::Compare::Scalar->new(item => 'foo');

           is([\'foo'], $sr, "pass");
           is([\'bar'], $sr, "fail, different value");
           is(['foo'],  $sr, "fail, not a ref");

return

See Also