mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-12 11:38:11 +00:00
30 lines
341 B
Go
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)
|
|
}
|