]> git.vpit.fr Git - perl/modules/Sub-Op.git/blobdiff - t/10-base.t
Test that subs aren't stubbed
[perl/modules/Sub-Op.git] / t / 10-base.t
index 62659d4f7a686fef078f9432e1a4e58d0ff7bfb3..b5ce7317d85c165fdbc37b0240fd4b8e8f6f439b 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use blib 't/Sub-Op-LexicalSub';
 
-use Test::More tests => 2 * 15 + 3 * 2 + 2 * 28;
+use Test::More tests => (1 + 3) * 15 + (1 + 2 * 3) * 2 + 2 * 28;
 
 our $called;
 
@@ -54,7 +54,9 @@ our $called;
    $test .= <<"   CHECK_VIVID"
     BEGIN {
      no warnings 'uninitialized'; # Test::Builder can't get the file name
-     is *main::${name}\{CODE\}, undef, '$name: no symbol table vivification';
+     ok !exists &main::${name},  '$name: not stubbed';
+     ok !defined &main::${name}, '$name: body not defined';
+     is *main::${name}\{CODE\}, undef, '$name: empty symbol table entry';
     }
    CHECK_VIVID
   }