From: Karen Etheridge Date: Tue, 10 Sep 2013 00:08:33 +0000 (-0700) Subject: do not load completion drivers unless completion plugin has its prereqs satisfied too X-Git-Tag: v1.003022~3^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf19d175b9465f0e63ed973c02be8d5a280f2c0f;p=p5sagit%2FDevel-REPL.git do not load completion drivers unless completion plugin has its prereqs satisfied too --- diff --git a/t/load_core.t b/t/load_core.t index c55b25a..7c7add3 100755 --- a/t/load_core.t +++ b/t/load_core.t @@ -9,22 +9,24 @@ use_ok('Devel::REPL::Script'); use_ok('Devel::REPL::Plugin::Colors'); use_ok('Devel::REPL::Plugin::Commands'); -eval 'use PPI; 1' - and use_ok('Devel::REPL::Plugin::Completion'); +eval 'use PPI; 1' and do { + use_ok('Devel::REPL::Plugin::Completion'); + use_ok('Devel::REPL::Plugin::CompletionDriver::Globals'); + use_ok('Devel::REPL::Plugin::CompletionDriver::Methods'); + + eval 'use File::Next; 1' + and use_ok('Devel::REPL::Plugin::CompletionDriver::INC'); -eval 'use File::Next; 1' - and use_ok('Devel::REPL::Plugin::CompletionDriver::INC'); + eval 'use B::Keywords; 1' + and use_ok('Devel::REPL::Plugin::CompletionDriver::Keywords'); -eval 'use B::Keywords; 1' - and use_ok('Devel::REPL::Plugin::CompletionDriver::Keywords'); + eval 'use Lexical::Persistence; 1' + and use_ok('Devel::REPL::Plugin::CompletionDriver::LexEnv') +}; eval 'use Lexical::Persistence; 1' - and use_ok('Devel::REPL::Plugin::CompletionDriver::LexEnv') and use_ok('Devel::REPL::Plugin::LexEnv'); -use_ok('Devel::REPL::Plugin::CompletionDriver::Globals'); -use_ok('Devel::REPL::Plugin::CompletionDriver::Methods'); - eval 'use Data::Dump::Concise; 1' and use_ok('Devel::REPL::Plugin::DDC');