tendermint/common
Emmanuel Odeke 763dc21393
common/BitArray: reduce fragility with methods
Fixes https://github.com/tendermint/tmlibs/issues/145
Fixes https://github.com/tendermint/tmlibs/issues/146

The code in here has been fragile when it comes to nil
but these edge cases were never tested, although they've
showed up in the wild and were only noticed because
the reporter actually read the logs otherwise
we'd have never known.

This changes covers some of these cases and adds some tests.
2018-02-06 01:12:24 -08:00
..
LICENSE move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
array.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
async.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
bit_array.go common/BitArray: reduce fragility with methods 2018-02-06 01:12:24 -08:00
bit_array_test.go common/BitArray: reduce fragility with methods 2018-02-06 01:12:24 -08:00
bytes.go cmn: fix HexBytes.MarshalJSON 2018-01-02 11:05:53 -05:00
bytes_test.go cmn: fix HexBytes.MarshalJSON 2018-01-02 11:05:53 -05:00
byteslice.go common: Fingerprint comment 2017-09-20 02:49:51 -04:00
cmap.go Make iterating over keys possible (#63) 2017-11-04 00:06:20 -05:00
cmap_test.go use assert.Contains in cmap_test 2017-11-04 00:10:59 -05:00
colors.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
date.go changelog and PR changes 2017-06-20 17:18:55 -04:00
date_test.go changelog and PR changes 2017-06-20 17:18:55 -04:00
errors.go Deprecated Panic* 2017-12-09 09:26:03 -08:00
heap.go Add PushBytes to Heap 2017-12-10 14:23:27 -08:00
int.go IntInSlice and StringInSlice functions 2017-11-29 12:18:03 -06:00
int_test.go IntInSlice and StringInSlice functions 2017-11-29 12:18:03 -06:00
io.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
kvpair.go Remove Bytes, just use []byte; Use protobuf for KVPair/KI64Pair 2017-12-26 04:40:35 -08:00
math.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00
net.go common: ProtocolAndAddress 2017-07-19 15:02:04 -04:00
net_test.go common: ProtocolAndAddress 2017-07-19 15:02:04 -04:00
os.go use os.Process#Kill (Fixes #73) 2017-11-04 08:14:47 -05:00
os_test.go make GoPath a function 2017-10-25 11:01:52 +04:00
random.go cmn: fix race condition in prng 2017-12-21 10:02:25 -05:00
random_test.go common: Rand* warnings about cryptographic unsafety 2017-12-15 22:41:36 -07:00
repeat_timer.go Fix logical time (#122) 2018-02-02 12:51:30 +04:00
repeat_timer_test.go Fix logical time (#122) 2018-02-02 12:51:30 +04:00
service.go common: comments for Service 2017-11-29 05:16:15 +00:00
service_test.go remove bool from Service#Reset 2017-11-27 23:42:36 -06:00
string.go IntInSlice and StringInSlice functions 2017-11-29 12:18:03 -06:00
string_test.go IntInSlice and StringInSlice functions 2017-11-29 12:18:03 -06:00
throttle_timer.go Revert "Refactor throttle timer" 2017-12-19 16:23:20 -06:00
throttle_timer_test.go Revert "Refactor throttle timer" 2017-12-19 16:23:20 -06:00
types.pb.go Remove Bytes, just use []byte; Use protobuf for KVPair/KI64Pair 2017-12-26 04:40:35 -08:00
types.proto Remove Bytes, just use []byte; Use protobuf for KVPair/KI64Pair 2017-12-26 04:40:35 -08:00
word.go move all files to common/ to begin repo merge 2017-04-18 16:33:22 -04:00