mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
29 lines
372 B
Go
29 lines
372 B
Go
package registry_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/crazy-max/diun/v3/pkg/registry"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
var (
|
|
rc *registry.Client
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
var err error
|
|
|
|
rc, err = registry.New(registry.Options{})
|
|
if err != nil {
|
|
panic(err.Error())
|
|
}
|
|
|
|
os.Exit(m.Run())
|
|
}
|
|
|
|
func TestNew(t *testing.T) {
|
|
assert.NotNil(t, rc)
|
|
}
|