test

package
v0.0.0-...-08f880a Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2024 Jake Nichols (MIT License)

Index

Constants

This section is empty.

Variables

View Source
var (
	// Character length of path segments produced by Routes().
	BenchRouteSegmentLength = int(10)
	// Number of segments in paths produced by Routes().
	BenchRouteLength = int(10)
	// Number of paths produced by Routes().
	BenchRouteCount = int(100)
	// Variance of paths produced by Routes().
	// The higher the value, the more each path will differ from the previous.
	BenchRouteVariance = int(3)
	// Percent of path segments that are wildcards (:segment).
	BenchRouteWildcardPct = float64(.1)
	// Percent of paths that are open ended (path/)
	BenchRouteOpenEndPct = float64(.2)
)

Functions

func Routes

func Routes() (routes []string)

Routes produces a slice of routes dependent on the process' BenchRoute parameters. Routes are semi-random, with closeness depending on BenchRouteVariance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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