bitcask-mirror/internal
James Mills d59d5ad8c2
Improves Test Coverage by covering error cases (#95)
* Add Unit  Test for testing a corrupted config

* Add Unit Test for testing errors from .Stats()

* Refactor  Datafile into an interface and add Unit Tests for testing Merge() errors

* Refactor indexer into an interface and add Unit Tests for .Close() errors

* Add Unit Tests for .Delete() errors

* Add Unit Tests for  testing Put/Get errors

* Add Unit Test for testing Open errors (bad path for example)

* Refactor out bitcask.writeConfig

* Add more tests for config errors

* Add unit test for options that might error

* Add more test cases for close errors

* Add test case for rotating datafiles

* Fix a possible data race in .Stats()

* Add test case for checksum errors

* Add test case for Sync errors with Put and WithSync enabled

* Refactor and use testify.mock for mocks and generate mocks for all interfaces

* Refactor TestCloseErrors

* Refactored TestDeleteErrors

* Refactored TestGetErrors

* Refactored TestPutErrors

* Refactored TestMergeErrors and fixed a bug with .Fold()

* Add test case for Scan() errors

* Apparently only Scan() can return nil Node()s?
2019-09-09 07:18:38 +10:00
..
config Improves Test Coverage by covering error cases (#95) 2019-09-09 07:18:38 +10:00
data Improves Test Coverage by covering error cases (#95) 2019-09-09 07:18:38 +10:00
index Improves Test Coverage by covering error cases (#95) 2019-09-09 07:18:38 +10:00
mocks Improves Test Coverage by covering error cases (#95) 2019-09-09 07:18:38 +10:00
entry.go Fix and cleanup some unnecessary internal sub-packages and duplication 2019-08-08 22:28:25 +10:00
item.go Replace keydir with ART trie (#75) 2019-09-02 08:38:56 +10:00
utils.go Replace keydir with ART trie (#75) 2019-09-02 08:38:56 +10:00
version_test.go Unexport some internal implemtnation details 2019-03-18 17:31:31 +10:00
version.go Unexport some internal implemtnation details 2019-03-18 17:31:31 +10:00