internaltest

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile added in v1.6.0

func Compile(in, exe, cwd string, disableInlining, race bool) error

Compile compiles sources into an executable.

func GetGoMinorVersion added in v1.6.0

func GetGoMinorVersion() int

GetGoMinorVersion returns the Go1 minor version.

Returns 0 for a developer build, panics if can't parse the version.

Ignores the revision (go1.<minor>.<revision>).

func IsUsingModules added in v1.4.1

func IsUsingModules() bool

IsUsingModules is best guess to know if go module are enabled.

Panics if an internal error occurs.

It reads the current value of GO111MODULES.

func PanicOutputs

func PanicOutputs() map[string][]byte

PanicOutputs returns a map of the output of every subcommands.

panic is built with inlining disabled.

The subcommand "race" is built with the race detector. Others are built without. In particular "asleep" doesn't work with the race detector.

The function panics if any internal error occurs.

func PanicwebOutput

func PanicwebOutput() []byte

PanicwebOutput returns the output of panicweb with inlining disabled.

The function panics if any internal error occurs.

func StaticPanicRaceOutput added in v1.5.0

func StaticPanicRaceOutput() []byte

StaticPanicRaceOutput returns a constant version of 'panic race' output.

func StaticPanicwebOutput

func StaticPanicwebOutput() []byte

StaticPanicwebOutput returns a constant version of panicweb output for use in benchmarks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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