func NewMockDataSync() *MockDataSync {
	return &MockDataSync{
		data: make(map[string]*ProtoData),
	}
}
// Data Sync ////
NewMockDataSync is a constructor for MockDataSync.
package datasync
import (
	"strings"
	"golang.org/x/net/context"
	"github.com/golang/protobuf/proto"
	"go.ligato.io/cn-infra/v2/datasync"
	"github.com/contiv/vpp/dbresources"
	controller "github.com/contiv/vpp/plugins/controller/api"
)
type MockDataSync struct {
	resyncCount int
	data        map[string]*ProtoData
	anyError    error
}
type ProtoData struct {
	val proto.Message
	rev int64
}
type MockKeyVal struct {
	key string
	val proto.Message
	rev int64
}
type MockChangeEvent struct {
	mds *MockDataSync
	wr  *MockProtoWatchResp
}
type MockProtoWatchResp struct {
	eventType datasync.Op
	MockKeyVal
	prevVal proto.Message
}
type MockResyncEvent struct {
	mds         *MockDataSync
	data        map[string]*ProtoData
	keyPrefixes []string
}
type MockKeyValIterator struct {
	mre    *MockResyncEvent
	keys   []string
	cursor int
}