mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
datastoreDB read as 'datastore database'; the datastore IS the database. one name: Datastore(). interface + provider + mock + ~85 call sites, 1:1. also repins otel-collector v0.144.9 (force-deleted dangling tag from the debrand commit) to the real v0.144.13 (matches cloud), so fresh go mod download in the release graph resolves. Co-authored-by: Hanzo Dev <[email protected]>
17 lines
395 B
Go
17 lines
395 B
Go
package telemetrystoretest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/DATA-DOG/go-sqlmock"
|
|
"github.com/hanzoai/o11y/pkg/telemetrystore"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNew(t *testing.T) {
|
|
provider := New(telemetrystore.Config{Provider: "datastore"}, sqlmock.QueryMatcherRegexp)
|
|
assert.NotNil(t, provider)
|
|
assert.NotNil(t, provider.Mock())
|
|
assert.NotNil(t, provider.Datastore())
|
|
}
|