test: use white-box testing

This commit is contained in:
CrazyMax
2023-09-16 10:30:36 +02:00
parent bc5cdf7aa1
commit 49b8852a04
10 changed files with 103 additions and 113 deletions

View File

@@ -1,21 +1,20 @@
package registry_test
package registry
import (
"os"
"testing"
"github.com/crazy-max/diun/v4/pkg/registry"
"github.com/stretchr/testify/assert"
)
var (
rc *registry.Client
rc *Client
)
func TestMain(m *testing.M) {
var err error
rc, err = registry.New(registry.Options{
rc, err = New(Options{
ImageOs: "linux",
ImageArch: "amd64",
})