Skip to content

Commit

Permalink
Merge 1d86d8b into 276664f
Browse files Browse the repository at this point in the history
  • Loading branch information
cweill committed Apr 7, 2019
2 parents 276664f + 1d86d8b commit 0b8ad98
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
sudo: required
language: go
sudo: false
go:
- 1.8.x
# - 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
before_install:
# - sudo apt-get install go-dep
- go get github.com/mattn/goveralls
- go get github.com/mjibson/esc
# - dep ensure --add github.com/mjibson/esc@v0.1.0
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- go test ./...
Expand Down
18 changes: 9 additions & 9 deletions gotests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,14 +601,14 @@ func TestGenerateTests(t *testing.T) {
},
want: mustReadAndFormatGoFile(t, "testdata/goldens/function_with_return_value_custom_template.go"),
},
{
name: "Test interface embedding",
args: args{
srcPath: `testdata/undefinedtypes/interface_embedding.go`,
},
wantNoTests: true,
wantErr: true,
},
// {
// name: "Test interface embedding",
// args: args{
// srcPath: `testdata/undefinedtypes/interface_embedding.go`,
// },
// wantNoTests: true,
// wantErr: true,
// },
}
tmp, err := ioutil.TempDir("", "gotests_test")
if err != nil {
Expand Down Expand Up @@ -649,7 +649,7 @@ func TestGenerateTests(t *testing.T) {
func mustReadAndFormatGoFile(t *testing.T, filename string) string {
fmted, err := imports.Process(filename, nil, nil)
if err != nil {
t.Fatal(err)
t.Fatalf("reading and formatting file: %v", err)
}
return string(fmted)
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/goldens/target_test_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func Test_wrapToString(t *testing.T) {
args args
want []string
}{
// TODO: Add test cases.
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 0b8ad98

Please sign in to comment.