lifecycle

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 1 Imported by: 15

Documentation

Overview

Package lifecycle informs the Antithesis environment that particular test phases or milestones have been reached. It is part of the Antithesis Go SDK, which enables Go applications to integrate with the Antithesis platform.

Both functions take the parameter details: Optional additional information provided by the user to add context for assertion failures. The information that is logged will appear in the logs section of a triage report. Normally the values passed to details are evaluated at runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEvent added in v0.3.1

func SendEvent(eventName string, details any)

SendEvent indicates to Antithesis that a certain event has been reached. It provides greater information about the ordering of events during the course of testing in Antithesis.

In addition to details, you also provide an eventName, which is the name of the event that you are logging. This name will appear in the logs section of a triage report.

func SetupComplete

func SetupComplete(details any)

SetupComplete indicates to Antithesis that setup has completed. Call this function when your system and workload are fully initialized. After this function is called, Antithesis will take a snapshot of your system and begin injecting faults.

Calling this function multiple times or from multiple processes will have no effect. Antithesis will treat the first time any process called this function as the moment that the setup was completed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL