fakedata

package
v1.26.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package fakedata provides utilities for generating random data for testing. We recently migrated from gofakeit to go-faker. This was to avoid the problem described here: https://github.com/brianvoe/gofakeit/issues/281#issue-2071796056. To make such migrations easier in the future, and to ensure that we use faker.SetIgnoreInterface before any invocation, we created this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeStruct

func FakeStruct(a interface{}) error

FakeStruct generates random data for the given struct pointer. Example usage:

var shardInfo persistencespb.ShardInfo
_ = fakedata.FakeStruct(&shardInfo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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