reflection

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldPointerOfB

func GetFieldPointerOfB(b *testing.B, fieldName string) (unsafe.Pointer, error)

Gets a pointer of a private or public field in a testing.B struct

func GetFieldPointerOfLogger added in v0.1.8

func GetFieldPointerOfLogger(logger *stdlog.Logger, fieldName string) (unsafe.Pointer, error)

Gets a pointer of a private or public field in a testing.T struct

func GetFieldPointerOfM

func GetFieldPointerOfM(m *testing.M, fieldName string) (unsafe.Pointer, error)

Gets a pointer of a private or public field in a testing.M struct

func GetFieldPointerOfT

func GetFieldPointerOfT(t *testing.T, fieldName string) (unsafe.Pointer, error)

Gets a pointer of a private or public field in a testing.T struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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