The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use Test::More;
use lib("t/lib");
use GunghoTest;

BEGIN
{
    if (! GunghoTest::assert_engine()) {
        plan(skip_all => "No engine available");
    } else {
        eval "use Data::Throttler";
        if ($@) {
            plan(skip_all => "Data::Throttler not installed: $@");
        } else {
            plan(tests => 2);
            use_ok("Gungho");
        }
    }
}

Gungho->bootstrap({ 
    user_agent => "Install Test For Gungho $Gungho::VERSION",
    components => [
        'Throttle::Domain'
    ],
    provider => {
        module => 'Simple'
    }
});

can_ok('Gungho', 'throttle');