package runtime_test

import (
	"testing"

	"github.com/aquaproj/aqua/v2/pkg/runtime"
)

func TestNew(t *testing.T) {
	t.Parallel()
	rt := runtime.New(t.Context())
	if rt == nil {
		t.Fatal("runtime must not be nil")
	}
	if rt.GOOS == "" {
		t.Fatal("rt.GOOS is empty")
	}
	if rt.GOARCH == "" {
		t.Fatal("rt.GOARCH is empty")
	}
}
