Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siva testing and bug fixes #13

Merged
merged 12 commits into from
Feb 22, 2019
Merged

siva testing and bug fixes #13

merged 12 commits into from
Feb 22, 2019

Conversation

jfontan
Copy link
Owner

@jfontan jfontan commented Feb 21, 2019

Add new tests for Location and fixes found while making them:

  • repo id is now the reference name
  • transaction timeout is now configurable in the library and the default is still 60 seconds
  • fixed bug calling init twice in a new location
  • fixed some wrapped errors

@codecov-io
Copy link

codecov-io commented Feb 21, 2019

Codecov Report

Merging #13 into siva will increase coverage by 3.49%.
The diff coverage is 73.07%.

Impacted file tree graph

@@            Coverage Diff            @@
##             siva     #13      +/-   ##
=========================================
+ Coverage   65.01%   68.5%   +3.49%     
=========================================
  Files          13      13              
  Lines         786     797      +11     
=========================================
+ Hits          511     546      +35     
+ Misses        203     182      -21     
+ Partials       72      69       -3
Impacted Files Coverage Δ
siva/iterator.go 66.66% <100%> (+28.57%) ⬆️
siva/repository.go 84% <100%> (+4%) ⬆️
siva/transactioner.go 100% <100%> (ø) ⬆️
siva/location.go 72.14% <100%> (+11.99%) ⬆️
siva/library.go 69.79% <100%> (+1.31%) ⬆️
siva/checkpoint.go 66.19% <12.5%> (+2.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 854be5f...3ac9c18. Read the comment docs.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
The fist init creates the siva file and the second one errors with
ErrLocationNotExists. This error is now treated in Location.Has and
returns false.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
siva/location_test.go Outdated Show resolved Hide resolved
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
@jfontan jfontan marked this pull request as ready for review February 22, 2019 10:00
Signed-off-by: Javi Fontan <jfontan@gmail.com>
@jfontan jfontan merged commit 7b19042 into siva Feb 22, 2019
jfontan added a commit that referenced this pull request May 10, 2019
siva: modify Storage to perform a custom refs management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants