Formatting
This commit is contained in:
parent
a411fb8695
commit
ad69913be9
|
@ -16,17 +16,17 @@ func TestGenChallenge(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGenClientCookie(t *testing.T) {
|
func TestGenClientCookie(t *testing.T) {
|
||||||
authHandler := new(AuthenticationHandler)
|
authHandler := new(AuthenticationHandler)
|
||||||
clientCookie := authHandler.GenClientCookie()
|
clientCookie := authHandler.GenClientCookie()
|
||||||
if clientCookie != authHandler.clientCookie {
|
if clientCookie != authHandler.clientCookie {
|
||||||
t.Errorf("AuthenticationHandler Client Cookies are Different", clientCookie, authHandler.clientCookie)
|
t.Errorf("AuthenticationHandler Client Cookies are Different", clientCookie, authHandler.clientCookie)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGenServerCookie(t *testing.T) {
|
func TestGenServerCookie(t *testing.T) {
|
||||||
authHandler := new(AuthenticationHandler)
|
authHandler := new(AuthenticationHandler)
|
||||||
serverCookie := authHandler.GenServerCookie()
|
serverCookie := authHandler.GenServerCookie()
|
||||||
if serverCookie != authHandler.serverCookie {
|
if serverCookie != authHandler.serverCookie {
|
||||||
t.Errorf("AuthenticationHandler Server Cookies are Different", serverCookie, authHandler.serverCookie)
|
t.Errorf("AuthenticationHandler Server Cookies are Different", serverCookie, authHandler.serverCookie)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,9 @@ func TestOpenChatChannel(t *testing.T) {
|
||||||
// TODO: More Indepth Test Of Output
|
// TODO: More Indepth Test Of Output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestOpenContactRequestChannel(t *testing.T) {
|
func TestOpenContactRequestChannel(t *testing.T) {
|
||||||
messageBuilder := new(MessageBuilder)
|
messageBuilder := new(MessageBuilder)
|
||||||
_, err := messageBuilder.OpenContactRequestChannel(3,"Nickname","Message")
|
_, err := messageBuilder.OpenContactRequestChannel(3, "Nickname", "Message")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error building open contact request channel message: %s", err)
|
t.Errorf("Error building open contact request channel message: %s", err)
|
||||||
}
|
}
|
||||||
|
@ -23,7 +22,7 @@ func TestOpenContactRequestChannel(t *testing.T) {
|
||||||
|
|
||||||
func TestOpenAuthenticationChannel(t *testing.T) {
|
func TestOpenAuthenticationChannel(t *testing.T) {
|
||||||
messageBuilder := new(MessageBuilder)
|
messageBuilder := new(MessageBuilder)
|
||||||
_, err := messageBuilder.OpenAuthenticationChannel(1,[16]byte{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})
|
_, err := messageBuilder.OpenAuthenticationChannel(1, [16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error building open authentication channel message: %s", err)
|
t.Errorf("Error building open authentication channel message: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue