Initial spike

This is mostly to solidify the overall structure with the agent,
plugins, and testing philosphy.
This commit is contained in:
Evan Phoenix
2015-04-01 09:34:32 -07:00
parent b8e13890a9
commit db74acb86d
13 changed files with 649 additions and 0 deletions

18
plugins/mock_Plugin.go Normal file
View File

@@ -0,0 +1,18 @@
package plugins
import "github.com/stretchr/testify/mock"
import "github.com/vektra/cypress"
type MockPlugin struct {
mock.Mock
}
func (m *MockPlugin) Read() ([]*cypress.Message, error) {
ret := m.Called()
r0 := ret.Get(0).([]*cypress.Message)
r1 := ret.Error(1)
return r0, r1
}