...
1 package graph
2
3 import (
4 "os"
5 "testing"
6
7 "github.com/google/go-containerregistry/pkg/name"
8
9 "edge-infra.dev/pkg/f8n/warehouse/oci"
10 "edge-infra.dev/test/fixtures"
11 )
12
13 var (
14 path *fixtures.Path
15 shoot oci.Artifact
16 )
17
18 func TestMain(m *testing.M) {
19 var err error
20 path, err = fixtures.Layout()
21 if err != nil {
22 panic(err)
23 }
24
25 shoot, err = path.Get(name.MustParseReference("shoot:latest"))
26 if err != nil {
27 panic(err)
28 }
29
30 os.Exit(m.Run())
31 }
32
View as plain text