mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 09:31:58 +08:00
17 lines
400 B
Go
17 lines
400 B
Go
package telemetrystoretest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/DATA-DOG/go-sqlmock"
|
|
"github.com/SigNoz/signoz/pkg/telemetrystore"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNew(t *testing.T) {
|
|
provider := New(telemetrystore.Config{Provider: "clickhouse"}, sqlmock.QueryMatcherRegexp)
|
|
assert.NotNil(t, provider)
|
|
assert.NotNil(t, provider.Mock())
|
|
assert.NotNil(t, provider.ClickhouseDB())
|
|
}
|