func NewInjectedStore(store Storage, cfg *InjectionConfig) Storage {
	return &InjectedStore{
		Storage: store,
		cfg:     cfg,
	}
}
NewInjectedStore creates a InjectedStore with config.
package kv
import (
	"context"
	"sync"
)
type InjectionConfig struct {
	sync.RWMutex
	getError    error  
	commitError error  
}
func (c *InjectionConfig) SetGetError(err error) {
	c.Lock()
	defer c.Unlock()
	c.getError = err
}
func (c *InjectionConfig) SetCommitError(err error) {
	c.Lock()
	defer c.Unlock()
	c.commitError = err
}
type InjectedStore struct {
	Storage
	cfg *InjectionConfig
}