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.
Click to show internal directories.
Click to hide internal directories.