func TestParserEmptySlowLog(t *testing.T) {
	got := parseSlowLog(t, "empty.log", opt)
	expect := []log.Event{}
	assert.EqualValues(t, expect, got)
}
--------------------------------------------------------------------------
No input, no events.
package slow_test
import (
	l "log"
	"os"
	"path"
	"testing"
	"time"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
	"github.com/percona/go-mysql/log"
	parser "github.com/percona/go-mysql/log/slow"
	"github.com/percona/go-mysql/test"
)
var (
	sample = test.RootDir() + "/test/slow-logs"
	opt    = log.Options{
		Debug:           false,
		DefaultLocation: time.UTC,
	}
)
func parseSlowLog(t *testing.T, filename string, o log.Options) []log.Event {
	file, err := os.Open(path.Join(sample, "/", filename))
	require.NoError(t, err)
	p := parser.NewSlowLogParser(file, o)
	require.NoError(t, err)
	got := []log.Event{}
	go p.Start()
	for e := range p.EventChan() {
		got = append(got, *e)
	}
	return got
}