The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
# Testing Test::MockRandom
use strict;

use Test::More tests => 7;

use Test::MockRandom '';
my @fcns = qw(
  rand
  srand
  oneish
  export_rand_to
  export_srand_to
  export_oneish_to
);

can_ok( 'Test::MockRandom', @fcns );
for my $fcn (@fcns) {
    ok( !UNIVERSAL::can( __PACKAGE__, $fcn ),
        "confirming that $fcn wasn't imported by default" );
}