Documentation
¶
Overview ¶
Package indirectcalls is used for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessMethodViaTypeAssertion ¶
func AccessMethodViaTypeAssertion()
AccessMethodViaTypeAssertion calls (*os.File).Chown by passing an io.Reader with dynamic type (*os.File) to maybeChown.
func CallOsViaFuncVariable ¶
func CallOsViaFuncVariable() int
CallOsViaFuncVariable calls a function in os via a variable with func type.
func CallOsViaInterfaceMethod ¶
func CallOsViaInterfaceMethod() int
CallOsViaInterfaceMethod calls a function in os via an interface method.
func CallOsViaStructField ¶
func CallOsViaStructField() int
CallOsViaStructField calls a function in os via a struct field with func type.
func MaybeChmod ¶
MaybeChmod would call (*os.File).Chmod if its io.Reader parameter had dynamic type (*os.File).
func ShouldHaveNoCapabilities ¶
func ShouldHaveNoCapabilities() int
ShouldHaveNoCapabilities calls the interface function myInterface.Foo. One of the concrete types which implement myInterface has a Foo method which calls an interesting function in os, but the particular variable used here can not have that type, so a precise-enough analysis would report that this function has no interesting capabilities.
Types ¶
This section is empty.