...

Source file src/github.com/launchdarkly/go-server-sdk/v6/ldcomponents/in_memory_data_store_test.go

Documentation: github.com/launchdarkly/go-server-sdk/v6/ldcomponents

     1  package ldcomponents
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/launchdarkly/go-server-sdk/v6/internal/datastore"
     7  	"github.com/launchdarkly/go-server-sdk/v6/internal/sharedtest"
     8  
     9  	"github.com/stretchr/testify/assert"
    10  	"github.com/stretchr/testify/require"
    11  )
    12  
    13  func TestInMemoryDataStoreFactory(t *testing.T) {
    14  	factory := InMemoryDataStore()
    15  	store, err := factory.Build(basicClientContext())
    16  	require.NoError(t, err)
    17  	require.NotNil(t, store)
    18  	assert.IsType(t, datastore.NewInMemoryDataStore(sharedtest.NewTestLoggers()), store)
    19  }
    20  

View as plain text