feat: added mocks and client tests

This commit is contained in:
Andrej Zavgorodnij 2020-07-30 14:26:40 +03:00
parent dedc2af73a
commit aa973cd216
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ func (c *Client) GetOperationQRPath(operationID string) (string, error) {
// ReadProcessedOperation reads the processed operation from camera, checks that
// the processed operation has its unprocessed counterpart in our state,
// posts a Message to the storageMocks and deletes the operation from our state.
// posts a Message to the storage and deletes the operation from our state.
func (c *Client) ReadProcessedOperation() error {
bz, err := c.qrProcessor.ReadQRFromCamera()
if err != nil {

View File

@ -34,7 +34,7 @@ func countLines(r io.Reader) uint64 {
return count
}
// InitFileStorage inits append-only file storageMocks
// InitFileStorage inits append-only file storage
// It takes two arguments: filename - path to a data file, lockFilename (optional) - path to a lock file
func InitFileStorage(filename string, lockFilename ...string) (Storage, error) {
var (