From 45c983a0bb47957e57aad29749078a56606032e1 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sun, 24 Apr 2022 13:55:28 +0800 Subject: [PATCH] Add unittest for newExecutionID Signed-off-by: yxxhero --- pkg/helmexec/id_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/helmexec/id_test.go diff --git a/pkg/helmexec/id_test.go b/pkg/helmexec/id_test.go new file mode 100644 index 00000000..ffe36ce7 --- /dev/null +++ b/pkg/helmexec/id_test.go @@ -0,0 +1,13 @@ +package helmexec + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestNewExecutionID(t *testing.T) { + idx := newExecutionID() + idy := newExecutionID() + require.NotEqual(t, idx, idy, "Execution IDs should be unique") +}