mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
fix test
This commit is contained in:
parent
c4b4fb2fd1
commit
35624f0858
2
go.mod
2
go.mod
|
|
@ -3,7 +3,7 @@ module github.com/motemen/ghq
|
|||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/Songmu/gitconfig v0.0.2
|
||||
github.com/Songmu/gitconfig v0.0.3
|
||||
github.com/daviddengcn/go-colortext v0.0.0-20180409174941-186a3d44e920 // indirect
|
||||
github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450 // indirect
|
||||
github.com/golangplus/fmt v0.0.0-20150411045040-2a5d6d7d2995 // indirect
|
||||
|
|
|
|||
6
go.sum
6
go.sum
|
|
@ -1,6 +1,6 @@
|
|||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/Songmu/gitconfig v0.0.2 h1:KBMYIgFddPe4F+A8XAezw60dMMpf2/a1h30g3ZR9MMI=
|
||||
github.com/Songmu/gitconfig v0.0.2/go.mod h1:ynNIqTQeA19lPihVePetAfR4TF/TRaEcVeaF4F/fU/s=
|
||||
github.com/Songmu/gitconfig v0.0.3 h1:mLLrCol+zLOxbX/0Pp+O8VgEjBPEMu3bZyw+vs/wBY8=
|
||||
github.com/Songmu/gitconfig v0.0.3/go.mod h1:0b3ML3J86L0tp1SB7qU4vZfezHS2s+PIczPsf23GAdk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/daviddengcn/go-colortext v0.0.0-20180409174941-186a3d44e920 h1:d/cVoZOrJPJHKH1NdeUjyVAWKp4OpOT+Q+6T1sH7jeU=
|
||||
|
|
@ -43,3 +43,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+
|
|||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
|
||||
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
|
|
|
|||
15
main_test.go
Normal file
15
main_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/Songmu/gitconfig"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
teardown := gitconfig.WithConfig(nil, "")
|
||||
code := m.Run()
|
||||
teardown()
|
||||
os.Exit(code)
|
||||
}
|
||||
Loading…
Reference in a new issue