1use strict; 2use warnings; 3 4use Test2::IPC qw/cull/; 5use Test2::API qw/context test2_ipc_drivers test2_ipc intercept/; 6 7use Test2::Tools::Tiny; 8 9test2_ipc(); 10 11is_deeply( 12 [test2_ipc_drivers()], 13 ['Test2::IPC::Driver::Files'], 14 "Default driver" 15); 16 17ok(__PACKAGE__->can('cull'), "Imported cull"); 18 19ok(eval { intercept { Test2::IPC->import }; 1 }, "Can re-import Test2::IPC without error") or diag $@; 20 21done_testing; 22