indirectcalls

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: 2 Imported by: 0

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 CallOs

func CallOs() int

CallOs calls a function in os.

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

func MaybeChmod(r io.Reader)

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.

Jump to

Keyboard shortcuts

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