0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-12 11:38:11 +00:00
crazy-max_diun/pkg/registry/registry_test.go
2023-09-16 11:47:52 +02:00

30 lines
341 B
Go

package registry
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
var (
rc *Client
)
func TestMain(m *testing.M) {
var err error
rc, err = New(Options{
ImageOs: "linux",
ImageArch: "amd64",
})
if err != nil {
panic(err.Error())
}
os.Exit(m.Run())
}
func TestNew(t *testing.T) {
assert.NotNil(t, rc)
}