Event

NAME

Test::Async::Event – collection of standard events

SYNOPSIS

use Test::Async::Event;

test-bundle MyBundle {
    method foo(Str:D $message) is test-tool {
        self.send-test: Event::Ok, :$message
    }
}

DESCRIPTION

General information about Test::Async event management can be found in Test::Async::Manual.

Events are objects of classes derived from Event class. This module provides support for Test::Async core. In general, all event classes can be conventionally split into the following groups:

  • informative – events signalling about some state changes. Like, for example, suite termination.

  • reporting - events bearing a message to be reported to user.

  • commands – those which tell the core to perform an action.

  • tests – outcomes of individual test tools.

Class Event

The base event class.

Attributes

  • $.origin – event originating object. Defaults to the current test suite object.

  • Int:D $.id – event id, a sequential number.

  • Instant:D $.time – the moment when event object was created.

Methods

  • Profile – returns a Map suitable for passing to an event constructor. The method collects all changed public attributes of an object.

  • gist, Str – stringify event object for reporting.

EVENT SUBCLASSES

Command event classes Event::Cmd::*

A bundle of events used internally for commands. See Test::Async::Hub and possibly other modules. The set of command events is not standartized and subject for changes.

SEE ALSO

COPYRIGHT

(c) 2020-2023, Vadim Belman [email protected]

LICENSE

Artistic License 2.0

See the LICENSE file in th

Test::Async v0.1.17

Thread-safe testing framework

Authors

  • Vadim Belman

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Test::Async
  • Test::Async::Aggregator
  • Test::Async::Base
  • Test::Async::Decl
  • Test::Async::Event
  • Test::Async::Hub
  • Test::Async::Job
  • Test::Async::JobMgr
  • Test::Async::Metamodel::BundleClassHOW
  • Test::Async::Metamodel::BundleHOW
  • Test::Async::Metamodel::HubHOW
  • Test::Async::Metamodel::ReporterHOW
  • Test::Async::Reporter
  • Test::Async::Reporter::TAP
  • Test::Async::Result
  • Test::Async::TestTool
  • Test::Async::Utils
  • Test::Async::When
  • Test::Async::X

Documentation

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

Built with Podlite — the markup and publishing tools behind this site.