Catalyst-View-TD

 view release on metacpan or  search on metacpan

t/08cycle.t  view on Meta::CPAN

        { dispatch_to => ['TestApp::Templates::Appconfig'] },
    );

    # Can't Test::Memory::Cycle test since it doesn't detect
    #  [ sub { $copy->paths } ]
    # as a cycle, but the above does prevent it getting garbage collected.
    #
    # memory_cycle_ok($view, 'No cycles in View');

    $copy = $view;
    Scalar::Util::weaken($copy);
}

ok(!defined $copy, 'Copy went out of scope');



( run in 0.253 second using v1.01-cache-2.11-cpan-65fba6d93b7 )