mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-02 06:48:48 +02:00
24 lines
444 B
Go
24 lines
444 B
Go
package util_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/argoproj/argo-cd/util"
|
|
)
|
|
|
|
func TestNopCloser(t *testing.T) {
|
|
assert.NoError(t, util.NopCloser.Close())
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|