test

package
v0.0.0-...-b444d14 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sample

func Sample(t SampleType) interface{}

Sample return sample interface. This is intended for testing unexported types in refutil package

Types

type SampleType

type SampleType uint

SampleType represent category for samples

const (
	// SampleInt sample int type
	SampleInt SampleType = iota
	// SampleUint sample uint type
	SampleUint
	// SampleString sample string type
	SampleString
	// SampleStringPtr sample string pointer type
	SampleStringPtr
	// SampleStringNil sample string pointer type which is nil
	SampleStringNil
	// SampleStringSlice sample string slice type
	SampleStringSlice
	// SampleChanBool sample booelan chan  type
	SampleChanBool
	// SampleEmptyZeroer sample zeroer struct type which is nil
	SampleEmptyZeroer
	// SamplePositiveZeroer sample zeroer struct  type
	SamplePositiveZeroer
	// SampleZeroer sample zeroer struct  type
	SampleZeroer
	// SampleStruct sample struct  type
	SampleStruct
)

Jump to

Keyboard shortcuts

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