fix: api handlers. add tests

This commit is contained in:
Jon Lundy
2022-09-07 16:00:10 -06:00
parent 4d3c5df454
commit 6425fcadcd
8 changed files with 251 additions and 13 deletions

View File

@@ -0,0 +1,29 @@
package projecter_test
import (
"context"
"testing"
"github.com/sour-is/ev/pkg/es/driver"
)
type mockDriver struct {
onOpen func()
onEventLog func()
}
// EventLog implements driver.Driver
func (*mockDriver) EventLog(ctx context.Context, streamID string) (driver.EventLog, error) {
panic("unimplemented")
}
// Open implements driver.Driver
func (*mockDriver) Open(ctx context.Context, dsn string) (driver.Driver, error) {
panic("unimplemented")
}
var _ driver.Driver = (*mockDriver)(nil)
func TestProjecter(t *testing.T) {
}