pre

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package pre contains preconsitions for network tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrecondition

func NewPrecondition(name, tags string) testing.Precondition

NewPrecondition creates a new precondition that can be shared by tests.

func SetLoggingWiFi

func SetLoggingWiFi() testing.Precondition

SetLoggingWiFi returns a precondition that WiFi logging is setup when a test is run.

Types

type LogConfig

type LogConfig struct {
	Level int
	Tags  string
}

The LogConfig object is made available to users of this precondition via:

func DoSomething(ctx context.Context, s *testing.State) {
	d := s.PreValue().(pre.LogConfig)
	...
}

Jump to

Keyboard shortcuts

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