testing_helpers

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PopulateFields

type PopulateFields struct {
	CustomFieldSetters map[reflect.Type]func(this *PopulateFields, field reflect.Value) (int, error)
	TagsToSkip         map[string]string
}

func NewPopulateFields

func NewPopulateFields() *PopulateFields

func (*PopulateFields) PopulateAll

func (p *PopulateFields) PopulateAll(v reflect.Value) (int, error)

func (*PopulateFields) WithCustomFieldSetter

func (p *PopulateFields) WithCustomFieldSetter(t reflect.Type, f func(this *PopulateFields, field reflect.Value) (int, error)) *PopulateFields

func (*PopulateFields) WithSkippedTag

func (p *PopulateFields) WithSkippedTag(tag, value string) *PopulateFields

Jump to

Keyboard shortcuts

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