Added Link to badge, fix indentation.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||

|
[](http://goreportcard.com/report/dimiro1/ipe)
|
||||||
|
|
||||||
# IPÊ
|
# IPÊ
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ Claudemiro Alves Feitosa Neto
|
|||||||
|
|
||||||
# LICENSE
|
# LICENSE
|
||||||
|
|
||||||
Copyright 2014, 2015 Claudemiro Alves Feitosa Neto. All rights reserved.
|
Copyright 2014, 2015, 2016 Claudemiro Alves Feitosa Neto. All rights reserved.
|
||||||
Use of this source code is governed by a MIT-style
|
Use of this source code is governed by a MIT-style
|
||||||
license that can be found in the LICENSE file.
|
license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ package ipe
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnection(t *testing.T) {
|
func TestNewConnection(t *testing.T) {
|
||||||
expectedSocketID := "socketID"
|
expectedSocketID := "socketID"
|
||||||
expectedSocket := &websocket.Conn{}
|
expectedSocket := &websocket.Conn{}
|
||||||
|
|
||||||
c := newConnection(expectedSocketID, expectedSocket)
|
c := newConnection(expectedSocketID, expectedSocket)
|
||||||
|
|
||||||
if c.SocketID != expectedSocketID {
|
if c.SocketID != expectedSocketID {
|
||||||
|
|||||||
Reference in New Issue
Block a user