summaryrefslogtreecommitdiff
path: root/sid_test.ml
Commit message (Collapse)AuthorAgeFilesLines
* sid: catch more boundary violationsPhilipp Gesang2018-10-301-0/+32
|
* sid: fix off by one parsing bugPhilipp Gesang2018-10-301-0/+5
| | | | | In the string representation, hyphen is always succeeded by a number so we need to terminate at input length minus one.
* sid: sid_test: move conversion functions to resultPhilipp Gesang2018-10-301-47/+34
| | | | | | Get rid of all “StringFmt” APIs involving exceptions. There is now only the “decode” function which returns a result type.
* sid_test: add unit tests for Sid.createPhilipp Gesang2018-10-301-0/+17
|
* sid: optionally handle big endian in packet format codecPhilipp Gesang2018-10-301-0/+57
| | | | | Oddly enough this only has an effect on the sub_auths since the 48 bits of “identifier authority” are always handled in big endian.
* sid: implement decoder for “packet representation”Philipp Gesang2018-10-281-4/+113
|
* sid_test: unit test packed representationPhilipp Gesang2018-10-281-2/+34
|
* sid: sid_test: add current state to repoPhilipp Gesang2018-10-281-0/+95