Documentation
¶
Overview ¶
Package assert implements the assert action handler. Assertions verify conditions without changing system state.
Index ¶
- type Handler
- func (h *Handler) DryRun(ctx actions.Context, step *config.Step) error
- func (h *Handler) Execute(ctx actions.Context, step *config.Step) (actions.Result, error)
- func (h *Handler) Metadata() actions.ActionMetadata
- func (h *Handler) Run(ctx actions.Context, step *config.Step) (actions.Result, error)
- func (h *Handler) Validate(step *config.Step) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler implements the assert action handler.
func (*Handler) Metadata ¶
func (h *Handler) Metadata() actions.ActionMetadata
Metadata returns the action metadata.
func (*Handler) Run ¶
Run is the Spec 16 entry point. Assertions don't mutate system state, so plan mode delegates straight to Execute: the assertion is evaluated, and any failure becomes a plan failure (which is the intent — you want plan to catch a broken assertion).
Reports Checkable=true and WouldChange=false when the assertion passes; a failure surfaces as a plan-time error.
Click to show internal directories.
Click to hide internal directories.