Remove neko entirely

This commit is contained in:
Evan Phoenix 2015-04-03 22:13:35 -07:00
parent 9c42aea28c
commit f9250e8e39
1 changed files with 58 additions and 57 deletions

View File

@ -6,21 +6,17 @@ import (
"github.com/influxdb/tivan/plugins"
"github.com/stretchr/testify/require"
"github.com/vektra/cypress"
"github.com/vektra/neko"
)
func TestAgent(t *testing.T) {
n := neko.Start(t)
func TestAgent_DrivesMetrics(t *testing.T) {
var (
plugin plugins.MockPlugin
metrics MockMetrics
)
n.CheckMock(&plugin.Mock)
n.CheckMock(&metrics.Mock)
defer plugin.AssertExpectations(t)
defer metrics.AssertExpectations(t)
n.It("drives the plugins and sends them to the metrics", func() {
a := &Agent{
plugins: []plugins.Plugin{&plugin},
metrics: &metrics,
@ -43,9 +39,17 @@ func TestAgent(t *testing.T) {
err := a.crank()
require.NoError(t, err)
})
}
func TestAgent_AppliesTags(t *testing.T) {
var (
plugin plugins.MockPlugin
metrics MockMetrics
)
defer plugin.AssertExpectations(t)
defer metrics.AssertExpectations(t)
n.It("applies tags as the messages pass through", func() {
a := &Agent{
plugins: []plugins.Plugin{&plugin},
metrics: &metrics,
@ -73,7 +77,4 @@ func TestAgent(t *testing.T) {
err := a.crank()
require.NoError(t, err)
})
n.Meow()
}