mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
* chore: Upgrade Go module to v2 Signed-off-by: jannfis <jann@mistrust.net> * Restore import order Signed-off-by: jannfis <jann@mistrust.net> * fix knowntypes_normalizer codegen error Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix codegen Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix Procfile Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
17 lines
327 B
Go
17 lines
327 B
Go
package util_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/argoproj/argo-cd/v2/util"
|
|
)
|
|
|
|
func TestMakeSignature(t *testing.T) {
|
|
for size := 1; size <= 64; size++ {
|
|
s, err := util.MakeSignature(size)
|
|
if err != nil {
|
|
t.Errorf("Could not generate signature of size %d: %v", size, err)
|
|
}
|
|
t.Logf("Generated token: %v", s)
|
|
}
|
|
}
|