Debian Codegraph @

cmd/mdatagen/internal/tests.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package internal // import "go.opentelemetry.io/collector/cmd/mdatagen/internal"
5
6 type Ignore struct {
7 Top []string `mapstructure:"top"`
8 Any []string `mapstructure:"any"`
9 }
10
11 type GoLeak struct {
12 Skip bool `mapstructure:"skip"`
13 Ignore Ignore `mapstructure:"ignore"`
14 Setup string `mapstructure:"setup"`
15 Teardown string `mapstructure:"teardown"`
16 }
17
18 type Tests struct {
19 Config any `mapstructure:"config"`
20 SkipLifecycle bool `mapstructure:"skip_lifecycle"`
21 SkipShutdown bool `mapstructure:"skip_shutdown"`
22 GoLeak GoLeak `mapstructure:"goleak"`
23 ExpectConsumerError bool `mapstructure:"expect_consumer_error"`
24 Host string `mapstructure:"host"`
25 }