Files
zeekay 421ff0281d fix: align Go package names with directory names, fix broken identifiers
- 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
2026-03-12 02:01:15 -07:00

22 lines
364 B
Go

package o11ydatastoremeter
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)
}