Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
testing whether some value is valid as (Moose|Mouse)::Meta::TypeConstraint
tag: 0.04

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Test
t
xt
.gitignore
.shipit
Changes
MANIFEST.SKIP
Makefile.PL
README

README

NAME
    Test::TypeConstraints - testing whether some value is valid as
    (Moose|Mouse)::Meta::TypeConstraint

SYNOPSIS
      use Test::TypeConstraints qw(type_isa);

      type_isa($got, "ArrayRef[Int]", "type should be ArrayRef[Int]");

DESCRIPTION
    Test::TypeConstraints is for testing whether some value is valid as
    (Moose|Mouse)::Meta::TypeConstraint.

METHOD
  type_isa($got, $typename_or_type, $test_name, %options)
        $got is value for checking.
        $typename_or_type is a Classname or Mouse::Meta::TypeConstraint name or "Mouse::Meta::TypeConstraint" object or "Moose::Meta::TypeConstraint::Class" object.
        %options is Hash. value is followings:

   coerce: Bool
            try coercion when checking value.

  type_does($got, $rolename_or_role, $test_name, %options)
        $got is value for checking.
        $typename_or_type is a Classname or Mouse::Meta::TypeConstraint name or "Mouse::Meta::TypeConstraint" object or "Moose::Meta::TypeConstraint::Role" object.

        %options is Hash. value is followings:

   coerce: Bool
            try coercion when checking value.

AUTHOR
    Keiji Yoshimi <walf443 at gmail dot com>

THANKS TO
    gfx

    tokuhirom

SEE ALSO
    +<Mouse::Util::TypeConstraints>, +<Moose::Util::TypeConstraints>

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

Something went wrong with that request. Please try again.