add tests for utils

This commit is contained in:
Marten Seemann
2016-04-14 11:30:22 +07:00
parent 98cd4aa513
commit 4f39e0f14d
3 changed files with 99 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import (
)
// ReadUintN reads N bytes
// ToDo: add tests
func ReadUintN(b io.ByteReader, length uint8) (uint64, error) {
var res uint64
for i := uint8(0); i < length; i++ {