use strict;
# HARNESS-NO-STREAM
# HARNESS-NO-PRELOAD
###############################################################################
# #
# This test is to insure certain objects do not load Test2::API directly or #
# indirectly when being required. It is ok for import() to load Test2::API if #
# necessary, but simply requiring the modules should not. #
# #
###############################################################################
require Test2::Event;
require Test2::Util;
require Test2::Hub;
my @loaded = grep { $INC{$_} } qw{
Test2/API.pm
Test2/API/Instance.pm
Test2/API/Context.pm
Test2/API/Stack.pm
};
Test2::Tools::Tiny::ok(!@loaded, "Test2::API was not loaded")
|| Test2::Tools::Tiny::diag("Loaded: " . Dumper(\@loaded));
Test2::Tools::Tiny::done_testing();