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

Function TestMain

cli/commands/resource/resource_test.go:44–49  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

42)
43
44func TestMain(m *testing.M) {
45 svc := service_discovery.NewService()
46 svc.StartDiscovery(&discoverytest.TestDiscoverer{TestCase: 2})
47
48 os.Exit(clitest.RunCLITest(m, server.WithServices(svc)))
49}
50
51func TestAddCommands(t *testing.T) {
52 cmd := NewResourceCommand()

Callers

nothing calls this directly

Calls 4

StartDiscoveryMethod · 0.95
RunCLITestFunction · 0.92
WithServicesFunction · 0.92
NewServiceMethod · 0.65

Tested by

no test coverage detected