2016-02-05 02:23:11 -08:00
|
|
|
package common
|
2016-02-13 21:00:29 -08:00
|
|
|
|
|
|
|
import (
|
2016-03-29 23:27:58 -07:00
|
|
|
//"github.com/stretchr/testify/assert"
|
2016-02-13 21:00:29 -08:00
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
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
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
func TestPublishedReturnsCorrectDate(t *testing.T) {
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
func TestRouterAddressCountReturnsCorrectCount(t *testing.T) {
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
func TestRouterAdrressesReturnsAddresses(t *testing.T) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestRouterAdrressesReturnsPartialListWithMissing(t *testing.T) {
|
|
|
|
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
func TestPeerSizeIsZero(t *testing.T) {
|
|
|
|
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|
|
|
|
|
2016-02-16 01:04:40 -08:00
|
|
|
func TestSignatureIsCorrectSize(t *testing.T) {
|
|
|
|
|
2016-02-13 21:00:29 -08:00
|
|
|
}
|