adding logging, headers, godoc to common data structures

This commit is contained in:
Hayden Parker
2016-02-16 01:04:40 -08:00
parent 270259b59d
commit fc98518cdb
7 changed files with 372 additions and 106 deletions

View File

@ -4,20 +4,35 @@ import (
"testing"
)
func TestRouterIdentityReadsRouterIdentity(t *testing.T) {
}
func TestRouterIdentityWithZeroLenSlice(t *testing.T) {
}
func TestRouterIdentityWithInvalidData(t *testing.T) {
func buildFullRouterInfo() RouterInfo {
// starts with a keys_and_cert
router_address_bytes := []byte{0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
str, _ := ToI2PString("foo")
mapping, _ := GoMapToMapping(map[string]string{"host": "127.0.0.1", "port": "4567"})
router_address_bytes = append(router_address_bytes, []byte(str)...)
router_address_bytes = append(router_address_bytes, mapping...)
//RouterAddress(router_address_bytes)
return nil
}
func TestPublishedReturnsCorrectDate(t *testing.T) {
}
func TestPublishedWithZeroLenSlice(t *testing.T) {
func TestRouterAddressCountReturnsCorrectCount(t *testing.T) {
}
func TestPublishedWithInvalidData(t *testing.T) {
func TestRouterAdrressesReturnsAddresses(t *testing.T) {
}
func TestRouterAdrressesReturnsPartialListWithMissing(t *testing.T) {
}
func TestPeerSizeIsZero(t *testing.T) {
}
func TestSignatureIsCorrectSize(t *testing.T) {
}