github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/helpers/randstring_test.go (about) 1 package helpers_test 2 3 import ( 4 "github.com/caos/orbos/internal/helpers" 5 "testing" 6 ) 7 8 func TestRandomStringRunes(t *testing.T) { 9 expected := 5 10 str := helpers.RandomString(expected) 11 actual := len(str) 12 if actual != expected { 13 t.Errorf("Expected length %d, actual length %d", expected, actual) 14 } 15 }