interfaces

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

package picker provided structures and method to manage injected variable system for Godog.

It allows an user to pick value into a store and inject them in steps through a variable replacement.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidPathElement indicates an element from interface structure is not valid to go into array/slice.
	ErrInvalidPathElement = errors.New("path element is not an integer on Array/Slice")
)

Functions

func Debug

func Debug() error

Debug activate debug logs.

func GenerateFieldList

func GenerateFieldList(obj interface{}) (res []string)

func GetFieldFromPath

func GetFieldFromPath(obj interface{}, path string) (reflect.Value, bool)

GetFieldFromPath help to recover data from interface It will go through the interface using a `.` separated string list when element is a structure, the path is expected to be a camel cased key (a call to strconv.ToCamel is done) when element is an array or a slice, the path is expected as an int when element is a map, the path is expected as a key string in the slice Warning: we currently do not support map key witch are not strings

func NoLog

func NoLog()

NoLog disable logging under Fatal level.

func Reset

func Reset() error

Reset matcher instance.

func ResetLog

func ResetLog()

ResetLog activate debug logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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