mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Separate the GenerateRandomAlphaOnlyString function from stringutils
Signed-off-by: chaowang <chaowang@localhost.localdomain>
This commit is contained in:
parent
bf1376f44a
commit
7c35a24182
9 changed files with 58 additions and 30 deletions
|
@ -34,14 +34,6 @@ func isASCII(s string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func TestGenerateRandomAlphaOnlyStringLength(t *testing.T) {
|
||||
testLengthHelper(GenerateRandomAlphaOnlyString, t)
|
||||
}
|
||||
|
||||
func TestGenerateRandomAlphaOnlyStringUniqueness(t *testing.T) {
|
||||
testUniquenessHelper(GenerateRandomAlphaOnlyString, t)
|
||||
}
|
||||
|
||||
func TestGenerateRandomAsciiStringLength(t *testing.T) {
|
||||
testLengthHelper(GenerateRandomASCIIString, t)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue