logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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