MCPcopy
hub / github.com/Azure/aztfexport / RandomStringOfLength

Method RandomStringOfLength

internal/test/random.go:81–86  ·  view source on GitHub ↗
(len int)

Source from the content-addressed store, hash-verified

79}
80
81func (rd Rd) RandomStringOfLength(len int) string {
82 if len > 18 {
83 panic("Invalid Test: RandomStringOfLength: len is larger than 18")
84 }
85 return rd.str[0:len]
86}
87
88func (rd Rd) RandomRgName() string {
89 return fmt.Sprintf("aztfexport-rg-%s", rd.RandomStringOfLength(8))

Callers 15

RandomRgNameMethod · 0.95
TplMethod · 0.80
ResourceMappingMethod · 0.80
SingleResourceContextMethod · 0.80
TplMethod · 0.80
ResourceMappingMethod · 0.80
SingleResourceContextMethod · 0.80
TplMethod · 0.80
ResourceMappingMethod · 0.80
SingleResourceContextMethod · 0.80
TplMethod · 0.80
ResourceMappingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected