mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-20 16:36:31 +00:00
db: test panic on nil key
This commit is contained in:
@ -121,3 +121,10 @@ type Iterator interface {
|
||||
func bz(s string) []byte {
|
||||
return []byte(s)
|
||||
}
|
||||
|
||||
// All DB funcs should panic on nil key.
|
||||
func panicNilKey(key []byte) {
|
||||
if key == nil {
|
||||
panic("nil key")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user