cockroachdb / pebble

RocksDB/LevelDB inspired key-value database in Go
BSD 3-Clause "New" or "Revised" License
4.6k stars 424 forks source link

internal/binfmt: new package #3676

Closed jbowens closed 1 week ago

jbowens commented 1 week ago

Add new internal binfmt package for formatting binary data in a descriptive way, suitable for datadriven tests.


This is motivated from the columnar block format unit tests which make use of it for pretty-printing the binary formats. I think it could make sense to pull this into the datadriven package itself eventually, but maybe we should wait. I expect we may want to iterate it on it in the short term.

cockroach-teamcity commented 1 week ago

This change is Reviewable