File: ccstash.t

package info (click to toggle)
libdevel-pragma-perl 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 449; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env perl

package CCstash;

use strict;
use warnings;

use Devel::Pragma qw(ccstash);

use lib qw(t/lib);

use Test::More tests => 3;

is ccstash, undef; # undef in code that's not being `require`d

use CCstashCallee1;

is(CCstashCallee1->test, 'CCstash');

require CCstashCallee2;

is(CCstashCallee2->test, 'CCstashCallee2');