mirror of https://github.com/certusone/dc4bc.git
feat: added mocks and client tests
This commit is contained in:
parent
dedc2af73a
commit
aa973cd216
|
@ -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 {
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue