package cachemulti import ( "fmt" "testing" "github.com/cosmos/cosmos-sdk/store/types" "github.com/stretchr/testify/require" ) func TestStoreGetKVStore(t *testing.T) { require := require.New(t) s := Store{stores: map[types.StoreKey]types.CacheWrap{}} key := types.NewKVStoreKey("abc") errMsg := fmt.Sprintf("kv store with key %v has not been registered in stores", key) require.PanicsWithValue(errMsg, func() { s.GetStore(key) }) require.PanicsWithValue(errMsg, func() { s.GetKVStore(key) }) }