1 package ldstoreimpl 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 8 "github.com/launchdarkly/go-server-sdk/v6/internal/datakinds" 9 "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" 10 ) 11 12 func TestDataKinds(t *testing.T) { 13 // Here we're just verifying that the public API returns the same instances that we're using internally. 14 // The behavior of those instances is tested in internal/datakinds where they are implemented. 15 16 assert.Equal(t, datakinds.Features, Features()) 17 assert.Equal(t, datakinds.Segments, Segments()) 18 assert.Equal(t, []ldstoretypes.DataKind{Features(), Segments()}, AllKinds()) 19 } 20