File: CantFindLayer.t

package info (click to toggle)
libfennec-perl 2.018-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: perl: 2,083; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl
package TEST::LayerErrors;
use strict;
use warnings;

use Fennec;

tests foo => sub {
    throws_ok {
        tests not_here => sub { 1 }
    }
    qr/tests\(\) can only be used within a describe or case block, or at the package level\./, "Layer error";
};

describe bar => sub {
    tests inner => sub {
        throws_ok {
            tests not_here => sub { 1 }
        }
        qr/tests\(\) can only be used within a describe or case block, or at the package level\./, "Layer error";
    };
};

done_testing;