MCPcopy Create free account
hub / github.com/zalando/skipper / Str

Method Str

routing/pathgen/pathgen.go:97–105  ·  view source on GitHub ↗
(min, max int)

Source from the content-addressed store, hash-verified

95}
96
97func (pg *PathGenerator) Str(min, max int) string {
98 len := pg.Between(min, max)
99 s := make([]byte, len)
100 for i := 0; i < len; i++ {
101 s[i] = pg.char()
102 }
103
104 return string(s)
105}
106
107func (pg *PathGenerator) Strs(min, max, minLength, maxLength int) []string {
108 len := pg.Between(min, max)

Callers 4

StrsMethod · 0.95
NameMethod · 0.95
hostRegexpFunction · 0.80
pathRegexpFunction · 0.80

Calls 2

BetweenMethod · 0.95
charMethod · 0.95

Tested by 2

hostRegexpFunction · 0.64
pathRegexpFunction · 0.64