Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Improve tests of pkg/db package #30

Merged
merged 3 commits into from
Sep 8, 2019
Merged

Improve tests of pkg/db package #30

merged 3 commits into from
Sep 8, 2019

Conversation

fhofherr
Copy link
Owner

@fhofherr fhofherr commented Sep 8, 2019

Relates to #27

In order to improve the tests of readRecord it became obvious that
its signature has to change. This eventually led to the introduction of
a bucket type which now provides readRecord and an analogous writeRecord
function. The bucket keeps track of errors that may have occured during
its lifetime and does not execute further actions if it has an error.
This allows to simplify the error handling in the various users of
bucket.
@fhofherr fhofherr merged commit a7f3de3 into master Sep 8, 2019
@fhofherr fhofherr deleted the 27-improve-tests branch September 8, 2019 13:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant