Formatting

This commit is contained in:
Sarah Jamie Lewis 2016-02-27 19:26:43 -08:00
parent a411fb8695
commit ad69913be9
2 changed files with 12 additions and 13 deletions

View File

@ -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)
} }
} }

View File

@ -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)
} }