category

package
v0.0.0-...-851e5e8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(t *testing.T, categories ...Category)

Set sets a set of categories for a test. If execution flags match the categories, test will be executed

Types

type Category

type Category string

Category defines a test category

const (
	// Unit is a test category for unit tests
	Unit Category = "unit"
	// Integration is a test category for integration tests
	Integration Category = "integration"
	// Firewall is a test category for firewall tests
	Firewall Category = "firewall"
	// File is a test category for tests that manipulate files
	File Category = "file"
	// Link is a test category for tests that manipulate network interfaces
	Link Category = "link"
	// Route is a test category for tests that manipulate network routes
	Route Category = "route"
	// Root is a test category for tests that require root privileges
	Root Category = "root"
)

Jump to

Keyboard shortcuts

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