mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
- Fix 'Hanzo O11y' (space) → 'HanzoO11y' in Go struct/func names - Package o11yclickhousemetrics → o11ydatastoremetrics (matches dir) - Package o11yclickhousemeter → o11ydatastoremeter (matches dir) - Import paths aligned with actual directory structure - Component type names kept as signozclickhousemetrics for config compat
22 lines
366 B
Go
22 lines
366 B
Go
package o11ydatastoremetrics
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestConfig_Validate(t *testing.T) {
|
|
cfg := &Config{}
|
|
err := cfg.Validate()
|
|
require.Error(t, err)
|
|
}
|
|
|
|
func TestConfig_Validate_Valid(t *testing.T) {
|
|
cfg := &Config{
|
|
DSN: "tcp://localhost:9000?database=default",
|
|
}
|
|
err := cfg.Validate()
|
|
require.NoError(t, err)
|
|
}
|