Test

NAME

Test - Rakudo Testing Library

SYNOPSIS

use Test;

DESCRIPTION

FUNCTIONS

throws-like($code, Mu $expected_type, *%matchers)

If $code is Callable, calls it, otherwise EVALs it, and expects it thrown an exception.

If an exception is thrown, it is compared to $expected_type.

Then for each key in %matchers, a method of that name is called on the resulting exception, and its return value smart-matched against the value.

Each step is counted as a separate test; if one of the first two fails, the rest of the tests are skipped.

Test::Stream v0.0.2

Stream test events

Authors

    License

    Artistic-2.0

    Dependencies

    Test Dependencies

    Provides

    • Test::Predicates
    • Test::Predicator
    • Test::Stream::Diagnostic
    • Test::Stream::Event
    • Test::Stream::EventSource
    • Test::Stream::Formatter::TAP12
    • Test::Stream::Hub
    • Test::Stream::Listener
    • Test::Stream::Recorder
    • Test::Stream::Suite
    • Test::Stream::Types
    • Test::Stream::Util

    Documentation

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.