This commit is contained in:
Nikola Jokic
2026-07-23 17:23:36 +02:00
parent f2fbfe3572
commit ac2864816d
8 changed files with 265 additions and 159 deletions
@@ -3,6 +3,8 @@ package actionsgithubcom
import (
"reflect"
"testing"
"k8s.io/apimachinery/pkg/util/rand"
)
func Test_filterLabels(t *testing.T) {
@@ -32,3 +34,13 @@ func Test_filterLabels(t *testing.T) {
})
}
}
var letterRunes = []rune("abcdefghijklmnopqrstuvwxyz1234567890")
func RandStringRunes(n int) string {
b := make([]rune, n)
for i := range b {
b[i] = letterRunes[rand.Intn(len(letterRunes))]
}
return string(b)
}