sf

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 Imported by: 0

README

Standsrd fixtures

Simple common usage fixtures with usage standard libraries only

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context added in v0.5.3

func Context(e fixenv.Env) context.Context

func FreeLocalTCPAddress

func FreeLocalTCPAddress(e fixenv.Env) string

func FreeLocalTCPAddressNamed

func FreeLocalTCPAddressNamed(e fixenv.Env, name string) string

func HTTPServer

func HTTPServer(e fixenv.Env) *httptest.Server

func LocalTCPListener

func LocalTCPListener(e fixenv.Env) *net.TCPListener

func LocalTCPListenerNamed

func LocalTCPListenerNamed(e fixenv.Env, name string) *net.TCPListener

func TempDir

func TempDir(e fixenv.Env) string

TempDir return path for existet temporary folder the folder will remove after test finish with all contents

func TempFile added in v0.5.3

func TempFile(e fixenv.Env) string

TempFile return path to empty existed file in TempDir

func TempFileNamed added in v0.5.3

func TempFileNamed(e fixenv.Env, pattern string) string

TempFileNamed return path to empty file in TempDir pattern is pattern for os.CreateTemp

Types

This section is empty.

Jump to

Keyboard shortcuts

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