skip

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package skip allows a Context to carry the intention to skip parts of the code execution. Mainly used to avoid variances while testing certain functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableSkip

func EnableSkip(ctx context.Context) context.Context

EnableSkip returns a copy of a parent context with skipping enabled.

func Skip

func Skip(ctx context.Context) bool

Skip returns whether the given context has skipping enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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