File: 06-fully-qualified.t

package info (click to toggle)
libmoosex-types-path-tiny-perl 0.012-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 276; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

use Test::More 0.88;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';

use MooseX::Types::Path::Tiny 'Path';
use Path::Tiny;

ok(is_Path(path('foo')), 'is_Path');

ok(Path->isa('Moose::Meta::TypeConstraint'), 'type is available as an import');

ok(MooseX::Types::Path::Tiny->can('Path'), 'type is available as a fully-qualified name');

done_testing;