MCPcopy Create free account
hub / github.com/clouditor/clouditor / TestMain

Function TestMain

cli/session_test.go:51–71  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

49)
50
51func TestMain(m *testing.M) {
52 var (
53 svc *service_orchestrator.Service
54 err error
55 )
56
57 clitest.AutoChdir()
58
59 svc = service_orchestrator.NewService()
60 _, err = svc.CreateDefaultCertificationTarget()
61 if err != nil {
62 panic(err)
63 }
64
65 _, err = svc.CreateCatalog(context.TODO(), &orchestrator.CreateCatalogRequest{Catalog: orchestratortest.NewCatalog()})
66 if err != nil {
67 panic(err)
68 }
69
70 os.Exit(clitest.RunCLITest(m, server.WithServices(svc)))
71}
72
73func TestSession(t *testing.T) {
74 var (

Callers

nothing calls this directly

Calls 7

AutoChdirFunction · 0.92
NewCatalogFunction · 0.92
RunCLITestFunction · 0.92
WithServicesFunction · 0.92
NewServiceMethod · 0.65
CreateCatalogMethod · 0.65

Tested by

no test coverage detected