transitive

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package transitive is used for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedAsmInStdlib

func AllowedAsmInStdlib() int

AllowedAsmInStdlib calls an assembly function indirectly. That function is categorized as "safe" in interesting.go.

func Asm

func Asm() int

Asm calls an assembly function indirectly.

func CallGenericFunction

func CallGenericFunction() int

CallGenericFunction calls a generic function in another package, using "a" as a type argument.

func CallGenericFunctionTransitively

func CallGenericFunctionTransitively() int

CallGenericFunctionTransitively calls a non-generic function which calls a generic function.

func CallViaStdlib

func CallViaStdlib() int

CallViaStdlib uses a standard library function to call an interesting function by passing it as an argument.

func Cgo

func Cgo() int

Cgo transitively calls a cgo function.

func ComplicatedExpressionWithOnce

func ComplicatedExpressionWithOnce() int

ComplicatedExpressionWithOnce calls Do on a sync.Once using a complicated but side-effect-free expression.

func Indirect

func Indirect() int

Indirect transitively calls a function in os via an interface method call.

func InterestingOnceDo

func InterestingOnceDo() int

InterestingOnceDo calls Do on a sync.Once. The function passed to Do calls an interesting function in the os package.

func InterestingSort

func InterestingSort() int

InterestingSort calls sort.Sort with an argument whose Less method has an interesting capability.

func InterestingSortSlice

func InterestingSortSlice() int

InterestingSortSlice calls sort.Slice with an argument that has an interesting capability.

func InterestingSortSliceNested

func InterestingSortSliceNested() int

InterestingSortSliceNested calls sort.Slice with an argument that itself calls sort.Slice. The inner sort's function argument has an interesting capability.

func InterestingSortSliceStable

func InterestingSortSliceStable() int

InterestingSortSliceStable calls sort.SliceStable with an argument that has an interesting capability.

func InterestingSortViaFunction

func InterestingSortViaFunction() int

InterestingSortViaFunction calls sort.Sort via a function-valued variable, The analysis will not be able to analyze the behavior of the sort, but will report the UNANALYZED capability to inform the user of this.

func InterestingSyncPool

func InterestingSyncPool() int

InterestingSyncPool calls Get on a Pool whose New function has an interesting capability.

func Linkname

func Linkname() int

Linkname indirectly calls a function that uses go:linkname.

func MultipleCapabilities

func MultipleCapabilities() int

MultipleCapabilities transitively calls a function in os, and a cgo function.

func Net

func Net() int

Net transitively calls a function in net.

func OnceInStruct

func OnceInStruct() int

OnceInStruct calls Do on a sync.Once in a struct field.

func Os

func Os() int

Os transitively calls a function in os.

func UninterestingOnceDo

func UninterestingOnceDo() int

UninterestingOnceDo calls Do on a sync.Once. The function passed to Do is not interesting.

func UninterestingSort

func UninterestingSort() int

UninterestingSort calls sort.Sort with an argument whose methods have no interesting capabilities.

func UninterestingSortSlice

func UninterestingSortSlice() int

UninterestingSortSlice calls sort.Slice with an argument that has no interesting capabilities.

func UninterestingSortSliceNested

func UninterestingSortSliceNested() int

UninterestingSortSliceNested calls sort.Slice with an argument that itself calls sort.Slice. The inner sort's function argument has no interesting capabilities.

func UninterestingSortSliceStable

func UninterestingSortSliceStable() int

UninterestingSortSliceStable calls sort.SliceStable with an argument that has no interesting capabilities.

func UninterestingSyncPool

func UninterestingSyncPool() int

UninterestingSyncPool calls Get on a Pool whose New function has no interesting capabilities.

func Unsafe

func Unsafe() int

Unsafe calls a function which uses an unsafe pointer.

func UseBigIntRand

func UseBigIntRand() int

UseBigIntRand calls an interesting function via a random-number generator passed to (*math/big.Int).Rand.

func Utf8

func Utf8() int

Utf8 transitively calls a function in unicode/utf8.

Types

This section is empty.

Jump to

Keyboard shortcuts

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