Skip to content

Commit

Permalink
fixing golint warnings from goreport card (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Baron committed Sep 1, 2019
1 parent e1ac9dc commit 2c0a897
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/protoMessagesBase.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package tests

//SchemaName implements the gbus.Message contract for ProtoCommand
func (*ProtoCommand) SchemaName() string {
return "ProtoCommand"
}
14 changes: 14 additions & 0 deletions tests/testMessages.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,72 @@ var _ gbus.Message = &Reply2{}
var _ gbus.Message = &Event1{}
var _ gbus.Message = &Event2{}

//PoisonMessage is a malformed message to test posion pill scenarios
type PoisonMessage struct {
}

//SchemaName implementing gbus.Message
func (PoisonMessage) SchemaName() string {
//an empty schema name will result in a message being treated as poison
return ""
}

//Command1 for testing
type Command1 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Command1) SchemaName() string {
return "grabbit.tests.Command1"
}

//Command2 for testing
type Command2 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Command2) SchemaName() string {
return "grabbit.tests.Command2"
}

//Reply1 for testing
type Reply1 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Reply1) SchemaName() string {
return "grabbit.tests.Reply1"
}

//Reply2 for testing
type Reply2 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Reply2) SchemaName() string {
return "grabbit.tests.Reply2"
}

//Event1 for testing
type Event1 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Event1) SchemaName() string {
return "grabbit.tests.Event1"
}

//Event2 for testing
type Event2 struct {
Data string
}

//SchemaName implementing gbus.Message
func (Event2) SchemaName() string {
return "grabbit.tests.Event2"
}

0 comments on commit 2c0a897

Please sign in to comment.