From 1b618f305e464aaebe17ad09132bf00353fa7ad7 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Fri, 27 Jan 2023 20:35:32 -0800 Subject: [PATCH] test(exporter): add unit test to cover cli pkg (#1148) Signed-off-by: Ramkumar Chinchani --- pkg/exporter/cli/cli_test.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkg/exporter/cli/cli_test.go diff --git a/pkg/exporter/cli/cli_test.go b/pkg/exporter/cli/cli_test.go new file mode 100644 index 00000000..cc64ac40 --- /dev/null +++ b/pkg/exporter/cli/cli_test.go @@ -0,0 +1,22 @@ +//go:build !metrics +// +build !metrics + +package cli_test + +import ( + _ "crypto/sha256" + "testing" + + . "github.com/smartystreets/goconvey/convey" + + "zotregistry.io/zot/pkg/exporter/cli" +) + +func TestExporterCli(t *testing.T) { + Convey("New", t, func(c C) { + cl := cli.NewExporterCmd() + So(cl, ShouldNotBeNil) + + So(cl.Execute(), ShouldBeNil) + }) +}