go-ee / eventsoutcing_pocketbase

MIT License
0 stars 0 forks source link

Test event and snapshot store implementations #1

Open hallgren opened 3 months ago

hallgren commented 3 months ago

Hi @eugeis @EugenEisler and cool to see that you are creating pocketbase supported event store and snapshot store. :)

If you would like to verify your pocketbase event store and snapshot store implementations, there are test suits in the eventsourcing/core module.

https://github.com/hallgren/eventsourcing/tree/master/core/testsuite

You can find example on how to use them in the internal event store modules:

event store https://github.com/hallgren/eventsourcing/blob/master/eventstore/esdb/esdb_test.go https://github.com/hallgren/eventsourcing/blob/master/eventstore/sql/sql_test.go

snapshot store https://github.com/hallgren/eventsourcing/blob/master/snapshotstore/sql/sql_test.go

BR Morgan

eugeis commented 3 months ago

Hi @hallgren thanks for the input, great, to have a testsuite, I will check and do it.