Files
78f06c51de refactor(telemetrystore): drop redundant DB suffix on the store accessor (#31)
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]>
2026-07-12 22:01:03 -07:00

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())
}