Skip to content

Commit 1393ba2

Browse files
author
James Lees
authored
Merge pull request #68 from pusher/update-go-deps
Pin testify dep and add a go.mod file
2 parents 3bee776 + d718039 commit 1393ba2

10 files changed

+33
-13
lines changed

.travis.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ go:
1010
- 1.11
1111
- 1.12
1212
- tip
13-
install:
14-
- go get github.com/stretchr/testify/assert
15-
- go get github.com/axw/gocov/gocov
13+
before_script:
1614
- go get github.com/mattn/goveralls
17-
- go get golang.org/x/crypto/nacl/secretbox
18-
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
19-
- $HOME/gopath/bin/goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN
15+
- PATH=$PATH:$HOME/gopath/bin goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN
2016
script:
2117
- go test

channel_authentication_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package pusher
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/assert"
6+
"gopkg.in/stretchr/testify.v1/assert"
77
)
88

99
func setUpAuthClient() Client {

client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/stretchr/testify/assert"
13+
"gopkg.in/stretchr/testify.v1/assert"
1414
)
1515

1616
func TestTriggerSuccessCase(t *testing.T) {

crypto_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/hex"
55
"testing"
66

7-
"github.com/stretchr/testify/assert"
7+
"gopkg.in/stretchr/testify.v1/assert"
88
)
99

1010
func TestHmacSignature(t *testing.T) {

go.mod

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module github.com/pusher/pusher-http-go
2+
3+
go 1.14
4+
5+
require (
6+
github.com/davecgh/go-spew v1.1.0 // indirect
7+
github.com/pmezard/go-difflib v1.0.0 // indirect
8+
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
9+
gopkg.in/stretchr/testify.v1 v1.2.2
10+
)

go.sum

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
6+
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg=
7+
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
8+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
9+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
10+
golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
11+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
12+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
13+
gopkg.in/stretchr/testify.v1 v1.2.2 h1:yhQC6Uy5CqibAIlk1wlusa/MJ3iAN49/BsR/dCCKz3M=
14+
gopkg.in/stretchr/testify.v1 v1.2.2/go.mod h1:QI5V/q6UbPmuhtm10CaFZxED9NreB8PnFYN9JcR6TxU=

request_url_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package pusher
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/assert"
6+
"gopkg.in/stretchr/testify.v1/assert"
77
)
88

99
func TestTriggerRequestUrl(t *testing.T) {

response_parsing_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package pusher
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/assert"
6+
"gopkg.in/stretchr/testify.v1/assert"
77
)
88

99
func TestParsingChannelsList(t *testing.T) {

util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package pusher
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/assert"
6+
"gopkg.in/stretchr/testify.v1/assert"
77
)
88

99
func TestParseAuthRequestParamsNoSock(t *testing.T) {

webhook_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"testing"
66

7-
"github.com/stretchr/testify/assert"
7+
"gopkg.in/stretchr/testify.v1/assert"
88
)
99

1010
func setUpClient() Client {

0 commit comments

Comments
 (0)