mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
test(exporter): add unit test to cover cli pkg (#1148)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
b3ed92ef1a
commit
1b618f305e
1 changed files with 22 additions and 0 deletions
22
pkg/exporter/cli/cli_test.go
Normal file
22
pkg/exporter/cli/cli_test.go
Normal file
|
@ -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)
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue