package testutils

import "github.com/invisv-privacy/masque/internal/testutils"

Index

Functions

func RootDir

func RootDir() string

Types

type NetConnWrapper

type NetConnWrapper struct {
	io.ReadWriteCloser
}

We want an interface that can implement net.Conn so we need to add these methods But we do not expect them to be called during our tests

func (*NetConnWrapper) LocalAddr

func (r *NetConnWrapper) LocalAddr() net.Addr

func (*NetConnWrapper) RemoteAddr

func (r *NetConnWrapper) RemoteAddr() net.Addr

func (*NetConnWrapper) SetDeadline

func (r *NetConnWrapper) SetDeadline(t time.Time) error

func (*NetConnWrapper) SetReadDeadline

func (r *NetConnWrapper) SetReadDeadline(t time.Time) error

func (*NetConnWrapper) SetWriteDeadline

func (r *NetConnWrapper) SetWriteDeadline(t time.Time) error

Source Files

testutils.go

Version
v0.0.0-20240807000525-d8d7169c2ca2 (latest)
Published
Aug 7, 2024
Platform
linux/amd64
Imports
7 packages
Last checked
1 month ago

Tools for package owners.