typetable

package
v0.0.0-...-88bbb11 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

このType Fuzzingで試す型一覧 https://stackoverflow.com/questions/6878590/the-maximum-value-for-an-int-type-in-go

Index

Constants

This section is empty.

Variables

View Source
var TypeVals map[types.Type][]string = map[types.Type][]string{
	types.Typ[types.Bool]:   {"true", "false"},
	types.Typ[types.String]: {"\"\""},
	types.Typ[types.Int]:    {"0", "-2147483648", "2147483647"},
	types.Typ[types.Int64]: {"0",
		"-9223372036854775808",
		"9223372036854775807"},
	types.Typ[types.Uint]: {"0", "18446744073709551615"},
	&types.Struct{}:       {"struct{}{}"},
	types.Typ[types.Float32]: {"0",
		"float32(math.NaN())",
		"float32(math.Inf(0))",
		"float32(math.Inf(-1))"},
	types.Typ[types.Float64]:               {"0", "math.NaN()", "math.Inf(0)", "math.Inf(-1)"},
	types.NewPointer(types.Typ[types.Int]): {"nil"},
	types.NewSlice(types.Typ[types.Int]):   {"[]int{}", "nil"},
}

TypeVals are candidate types and its values for fuzzing generics

View Source
var Types []types.Type = make([]types.Type, 0, len(TypeVals))

Types are candidate types for fuzzing generics

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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