fuzzwrapexamples

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discard

func Discard(string, ...interface{})

Discard is modeled on tailscale.com/types/logger.Discard

func Discard2

func Discard2(string, ...int)

func InterfacesFullList

func InterfacesFullList(
	x1 io.Writer,
	x2 io.Reader,
	x3 io.ReaderAt,
	x4 io.WriterTo,
	x5 io.Seeker,
	x6 io.ByteScanner,
	x7 io.RuneScanner,
	x8 io.ReadSeeker,
	x9 io.ByteReader,
	x10 io.RuneReader,
	x11 io.ByteWriter,
	x12 io.ReadWriter,
	x13 io.ReaderFrom,
	x14 io.StringWriter,
	x15 io.Closer,
	x16 io.ReadCloser,
	x17 context.Context)

This is the full list from randparam.SupportedInterfaces.

func InterfacesShortList

func InterfacesShortList(ctx context.Context, w io.Writer, r io.Reader, sw io.StringWriter, rc io.ReadCloser)

This checks each of the major approaches for interfaces in the randparam.SupportedInterfaces map.

func InterfacesSkip

func InterfacesSkip(c net.Conn)

This should be skipped due to unsupported interface.

func Short1

func Short1(x1 int)

This should not trigger a fz.Fill and should not be skipped.

func Short2

func Short2(x1 *int)

These should trigger a fz.Fill and should not be skipped.

func Short3

func Short3(x1 **int)

func Short4

func Short4(x1 MyInt)

func Short5

func Short5(x1 complex64)

func Short6

func Short6(x1 complex128)

func Short7

func Short7(x1 uintptr)

func Short8

func Short8(x1 unsafe.Pointer)

func TypesShortListFill

func TypesShortListFill(
	x1 int,
	x2 *int,
	x3 **int,
	x4 map[string]string,
	x5 *map[string]string,
	x6 MyInt,
	x7 [4]int,
	x8 MyStruct,
	x9 io.ByteReader,
	x10 io.RuneReader,
	x11 io.ByteWriter,
	x12 io.ReadWriter,
	x13 io.ReaderFrom,
	x14 io.StringWriter,
	x15 io.Closer,
	x16 io.ReadCloser,
	x17 context.Context)

This should trigger a fz.Fill and should not be skipped.

func TypesShortListNoFill

func TypesShortListNoFill(
	x1 int,
	x5 string)

This should not trigger a fz.Fill and should not be skipped.

func TypesShortListSkip1

func TypesShortListSkip1(x chan bool)

These should be skipped.

func TypesShortListSkip2

func TypesShortListSkip2(x func(int))

Types

type MyInt

type MyInt int

type MyStruct

type MyStruct struct{ A int }

type Std

type Std struct{}

ListenPacket does not have a named receiver, and is modeled on tailscale.com/types/nettype

func (Std) ListenPacket

func (Std) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)

type TypesNilCheck

type TypesNilCheck struct{}

This should triggier a fz.Fill with nil checks for non-chained output, and fz.Fill without nil checks for chained output.

func NewTypesNilCheck

func NewTypesNilCheck() *TypesNilCheck

func (*TypesNilCheck) Interface

func (n *TypesNilCheck) Interface(
	x1 io.Writer,
)

func (*TypesNilCheck) Pointers

func (n *TypesNilCheck) Pointers(
	x1 *int,
	x2 **int)

func (*TypesNilCheck) WriteTo

func (n *TypesNilCheck) WriteTo(stream io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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