chore: Fix linter findings for `revive:comment-spacings` (part 1) (#15896)
This commit is contained in:
parent
ee9c47cc7a
commit
43590ca730
|
|
@ -1292,7 +1292,7 @@ func TestPersisterProcessorRegistration(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup INPUT plugin for (new) parser testing to avoid cyclic dependencies ***/
|
// Mockup INPUT plugin for (new) parser testing to avoid cyclic dependencies
|
||||||
type MockupInputPluginParserNew struct {
|
type MockupInputPluginParserNew struct {
|
||||||
Parser telegraf.Parser
|
Parser telegraf.Parser
|
||||||
ParserFunc telegraf.ParserFunc
|
ParserFunc telegraf.ParserFunc
|
||||||
|
|
@ -1311,7 +1311,7 @@ func (m *MockupInputPluginParserNew) SetParserFunc(f telegraf.ParserFunc) {
|
||||||
m.ParserFunc = f
|
m.ParserFunc = f
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup INPUT plugin for testing to avoid cyclic dependencies ***/
|
// Mockup INPUT plugin for testing to avoid cyclic dependencies
|
||||||
type MockupInputPlugin struct {
|
type MockupInputPlugin struct {
|
||||||
Servers []string `toml:"servers"`
|
Servers []string `toml:"servers"`
|
||||||
Methods []string `toml:"methods"`
|
Methods []string `toml:"methods"`
|
||||||
|
|
@ -1341,7 +1341,7 @@ func (m *MockupInputPlugin) SetParser(parser telegraf.Parser) {
|
||||||
m.parser = parser
|
m.parser = parser
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup INPUT plugin with ParserFunc interface ***/
|
// Mockup INPUT plugin with ParserFunc interface
|
||||||
type MockupInputPluginParserFunc struct {
|
type MockupInputPluginParserFunc struct {
|
||||||
parserFunc telegraf.ParserFunc
|
parserFunc telegraf.ParserFunc
|
||||||
}
|
}
|
||||||
|
|
@ -1356,7 +1356,7 @@ func (m *MockupInputPluginParserFunc) SetParserFunc(pf telegraf.ParserFunc) {
|
||||||
m.parserFunc = pf
|
m.parserFunc = pf
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup INPUT plugin without ParserFunc interface ***/
|
// Mockup INPUT plugin without ParserFunc interface
|
||||||
type MockupInputPluginParserOnly struct {
|
type MockupInputPluginParserOnly struct {
|
||||||
parser telegraf.Parser
|
parser telegraf.Parser
|
||||||
}
|
}
|
||||||
|
|
@ -1371,7 +1371,7 @@ func (m *MockupInputPluginParserOnly) SetParser(p telegraf.Parser) {
|
||||||
m.parser = p
|
m.parser = p
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup PROCESSOR plugin for testing to avoid cyclic dependencies ***/
|
// Mockup PROCESSOR plugin for testing to avoid cyclic dependencies
|
||||||
type MockupProcessorPluginParser struct {
|
type MockupProcessorPluginParser struct {
|
||||||
Parser telegraf.Parser
|
Parser telegraf.Parser
|
||||||
ParserFunc telegraf.ParserFunc
|
ParserFunc telegraf.ParserFunc
|
||||||
|
|
@ -1398,7 +1398,7 @@ func (m *MockupProcessorPluginParser) SetParserFunc(f telegraf.ParserFunc) {
|
||||||
m.ParserFunc = f
|
m.ParserFunc = f
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup PROCESSOR plugin without parser ***/
|
// Mockup PROCESSOR plugin without parser
|
||||||
type MockupProcessorPlugin struct {
|
type MockupProcessorPlugin struct {
|
||||||
Option string `toml:"option"`
|
Option string `toml:"option"`
|
||||||
state []uint64
|
state []uint64
|
||||||
|
|
@ -1433,7 +1433,7 @@ func (m *MockupProcessorPlugin) SetState(state interface{}) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup PROCESSOR plugin with parser ***/
|
// Mockup PROCESSOR plugin with parser
|
||||||
type MockupProcessorPluginParserOnly struct {
|
type MockupProcessorPluginParserOnly struct {
|
||||||
Parser telegraf.Parser
|
Parser telegraf.Parser
|
||||||
}
|
}
|
||||||
|
|
@ -1456,7 +1456,7 @@ func (m *MockupProcessorPluginParserOnly) SetParser(parser telegraf.Parser) {
|
||||||
m.Parser = parser
|
m.Parser = parser
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup PROCESSOR plugin with parser-function ***/
|
// Mockup PROCESSOR plugin with parser-function
|
||||||
type MockupProcessorPluginParserFunc struct {
|
type MockupProcessorPluginParserFunc struct {
|
||||||
Parser telegraf.ParserFunc
|
Parser telegraf.ParserFunc
|
||||||
}
|
}
|
||||||
|
|
@ -1479,7 +1479,7 @@ func (m *MockupProcessorPluginParserFunc) SetParserFunc(pf telegraf.ParserFunc)
|
||||||
m.Parser = pf
|
m.Parser = pf
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup OUTPUT plugin for testing to avoid cyclic dependencies ***/
|
// Mockup OUTPUT plugin for testing to avoid cyclic dependencies
|
||||||
type MockupOutputPlugin struct {
|
type MockupOutputPlugin struct {
|
||||||
URL string `toml:"url"`
|
URL string `toml:"url"`
|
||||||
Headers map[string]string `toml:"headers"`
|
Headers map[string]string `toml:"headers"`
|
||||||
|
|
@ -1502,7 +1502,7 @@ func (m *MockupOutputPlugin) Write(_ []telegraf.Metric) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup OUTPUT plugin for serializer testing to avoid cyclic dependencies ***/
|
// Mockup OUTPUT plugin for serializer testing to avoid cyclic dependencies
|
||||||
type MockupOutputPluginSerializerOld struct {
|
type MockupOutputPluginSerializerOld struct {
|
||||||
Serializer serializers.Serializer
|
Serializer serializers.Serializer
|
||||||
}
|
}
|
||||||
|
|
@ -1543,7 +1543,7 @@ func (*MockupOutputPluginSerializerNew) Write(_ []telegraf.Metric) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup INPUT plugin with state for testing to avoid cyclic dependencies ***/
|
// Mockup INPUT plugin with state for testing to avoid cyclic dependencies
|
||||||
type MockupState struct {
|
type MockupState struct {
|
||||||
Name string
|
Name string
|
||||||
Version uint64
|
Version uint64
|
||||||
|
|
|
||||||
|
|
@ -787,7 +787,7 @@ func TestSecretImplTestSuiteProtected(t *testing.T) {
|
||||||
suite.Run(t, &SecretImplTestSuite{protected: true})
|
suite.Run(t, &SecretImplTestSuite{protected: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup (input) plugin for testing to avoid cyclic dependencies ***/
|
// Mockup (input) plugin for testing to avoid cyclic dependencies
|
||||||
type MockupSecretPlugin struct {
|
type MockupSecretPlugin struct {
|
||||||
Secret Secret `toml:"secret"`
|
Secret Secret `toml:"secret"`
|
||||||
Expected string `toml:"expected"`
|
Expected string `toml:"expected"`
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ func TestTOMLParsingIntegerSizes(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Mockup (input) plugin for testing to avoid cyclic dependencies ***/
|
// Mockup (input) plugin for testing to avoid cyclic dependencies
|
||||||
type MockupTypesPlugin struct {
|
type MockupTypesPlugin struct {
|
||||||
Durations []config.Duration `toml:"durations"`
|
Durations []config.Duration `toml:"durations"`
|
||||||
Sizes []config.Size `toml:"sizes"`
|
Sizes []config.Size `toml:"sizes"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue