Commit Graph

12 Commits (23a53d2d2edad1b43609706cde3ff93e535e90b2)

Author SHA1 Message Date
Michael Desa 8c87c9d132 revert #442 2018-08-01 14:54:32 -04:00
Leonardo Di Donato 43ebb0251f Improvements to platform.ID errors
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato c16a855a58 Better naming for the ID length constant 2018-08-01 18:20:59 +02:00
Leonardo Di Donato bba4e4d69f Moving ID tests in platform_test package to avoid circular deps 2018-08-01 18:20:59 +02:00
Leonardo Di Donato c6b8c9d82e All zeros ID considered invalid 2018-08-01 18:20:59 +02:00
Leonardo Di Donato ae9e7c0087 Adapt tests to ID generators returning pointer to platform.ID 2018-08-01 18:20:59 +02:00
Leonardo Di Donato bcd4e7e675 Fix ID error about exact length 2018-08-01 18:20:59 +02:00
Leonardo Di Donato 94f48bdaf5 Switch ID back to uint64 2018-08-01 18:20:59 +02:00
Leonardo Di Donato 60eb7dd8ad Errors for shorter and longer inputs + empty function + big endian
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato d2a11aa77c Platform ID encoding using uint64
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-by: Lorenzo Fontana <lo@linux.com>
2018-08-01 18:20:59 +02:00
Lorenzo Fontana 8f0ebe47f2
Static id from string function
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Chris Goller <goller@gmail.com>
2018-07-20 17:00:36 +02:00
Michael Desa 1aa08a2a4b fix(platform): rename *_generator.go to *.go 2018-05-16 11:45:13 -04:00