mock

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomRequests

func GenerateRandomRequests(num int) []*model.Request

GenerateRandomRequests produces a slice of *model.Request for use in tests and benchmarks. Each request gets a unique combination of project, domain, language, and tags.

func GenerateRandomResponses

func GenerateRandomResponses(cfg *config.Config, num int) []*model.Response

GenerateRandomResponses generates a list of *model.Response, each linked to a random request and containing random body data. Used for stress/load/benchmark testing of cache systems.

func GenerateRandomString

func GenerateRandomString() string

GenerateRandomString returns a random ASCII string of length between minStrLen and maxStrLen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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