package sf

import "github.com/rekby/fixenv/sf"

Index

Functions

func Context

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

func TempFile(e fixenv.Env) string

TempFile return path to empty existed file in TempDir

func TempFileNamed

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

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

Source Files

context.go filesystem.go http.go network.go utilities.go

Version
v0.7.0 (latest)
Published
Aug 9, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
4 hours ago

Tools for package owners.