Skip to content

Commit

Permalink
Merge pull request #43 from vrecan/master
Browse files Browse the repository at this point in the history
move to go.mod
  • Loading branch information
vrecan committed Jul 5, 2020
2 parents ff86cc9 + 920f972 commit fe88957
Show file tree
Hide file tree
Showing 113 changed files with 32 additions and 13,492 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,10 +1,10 @@
language: go
sudo: false
go:
- "1.10"
- "1.14"
before_install:
- go get github.com/mattn/goveralls
- export PATH=$PATH:$HOME/gopath/bin
- go install github.com/vrecan/death/./...
script:
- $GOPATH/bin/goveralls -service=travis-ci -race -v
- $GOPATH/bin/goveralls -service=travis-ci -race -v
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -69,6 +69,7 @@ type NewType struct {
func (c *NewType) Close() error {
return nil
}

```

### Or close using an anonymous function
Expand Down
2 changes: 0 additions & 2 deletions death_unix_test.go
Expand Up @@ -9,7 +9,6 @@ import (
"testing"
"time"

"github.com/cihub/seelog"
. "github.com/smartystreets/goconvey/convey"
)

Expand All @@ -20,7 +19,6 @@ func (u Unhashable) Close() error {
}

func TestDeath(t *testing.T) {
defer seelog.Flush()

Convey("Validate death handles unhashable types", t, func() {
u := make(Unhashable)
Expand Down
6 changes: 2 additions & 4 deletions death_windows_test.go
Expand Up @@ -2,21 +2,19 @@ package death

import (
"bytes"
log "github.com/cihub/seelog"
. "github.com/smartystreets/goconvey/convey"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"syscall"
"testing"
"time"

. "github.com/smartystreets/goconvey/convey"
)

func TestDeath(t *testing.T) {

defer log.Flush()

Convey("Validate death happens cleanly on windows with ctrl-c event", t, func() {
// create source file
const source = `
Expand Down
9 changes: 9 additions & 0 deletions go.mod
@@ -0,0 +1,9 @@
module github.com/vrecan/death

go 1.14

require (
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
github.com/smartystreets/assertions v1.1.1 // indirect
github.com/smartystreets/goconvey v1.6.4
)
18 changes: 18 additions & 0 deletions go.sum
@@ -0,0 +1,18 @@
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0=
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/assertions v1.1.1 h1:T/YLemO5Yp7KPzS+lVtu+WsHn8yoSwTfItdAd1r3cck=
github.com/smartystreets/assertions v1.1.1/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 h1:TFlARGu6Czu1z7q93HTxcP1P+/ZFC/IKythI5RzrnRg=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
2 changes: 0 additions & 2 deletions pkgPath_test.go
Expand Up @@ -3,12 +3,10 @@ package death
import (
"testing"

log "github.com/cihub/seelog"
. "github.com/smartystreets/goconvey/convey"
)

func TestGetPkgPath(t *testing.T) {
defer log.Flush()

Convey("Give pkgPath a ptr", t, func() {
c := &Closer{}
Expand Down
24 changes: 0 additions & 24 deletions vendor/github.com/cihub/seelog/LICENSE.txt

This file was deleted.

116 changes: 0 additions & 116 deletions vendor/github.com/cihub/seelog/README.markdown

This file was deleted.

129 changes: 0 additions & 129 deletions vendor/github.com/cihub/seelog/behavior_adaptivelogger.go

This file was deleted.

0 comments on commit fe88957

Please sign in to comment.