mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
completes the hanzo-ds debrand: driver hanzoai/datastore-go/v2 -> hanzo-ds/go (dscol->col), mock hanzoai/datastore-go-mock -> hanzo-ds/mock. sqlbuilder/sqlparser already moved. zero hanzoai/datastore-* imports; build + store/metadata tests green. (residual /v2 indirect is via the pre-existing ../cloud replace and clears when cloud migrates.) Co-authored-by: Hanzo Dev <[email protected]>
19 lines
766 B
Go
19 lines
766 B
Go
// Package datastoremock exposes the datastore mock connection surface behind a
|
|
// brand-neutral interface, so o11y test doubles depend on a local Datastore
|
|
// contract rather than the mock driver's exported type name.
|
|
package datastoremock
|
|
|
|
import dsmock "github.com/hanzo-ds/mock"
|
|
|
|
// Conn is the subset of the datastore mock driver used to set query
|
|
// expectations in tests. The mock connection satisfies it structurally.
|
|
type Conn interface {
|
|
ExpectQuery(sql string) *dsmock.ExpectedQuery
|
|
ExpectQueryRow(sql string) *dsmock.ExpectedQueryRow
|
|
ExpectSelect(sql string) *dsmock.ExpectedSelect
|
|
ExpectExec(sql string) *dsmock.ExpectedExec
|
|
ExpectPrepareBatch(sql string) *dsmock.ExpectedPrepareBatch
|
|
ExpectationsWereMet() error
|
|
MatchExpectationsInOrder(bool)
|
|
}
|