Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move `ginkgo convert` fixtures into more canonical dir

  • Loading branch information...
commit 2c5f638fa9834cbac82f59c94f8a961122edc3a9 1 parent e74b6ae
@tjarratt tjarratt authored Onsi Fakhouri committed
View
0  convert-fixtures/extra_functions_test.go → convert_fixtures/extra_functions_test.go
File renamed without changes
View
0  convert-fixtures/ginkgo_test_goldmaster.go → convert_fixtures/ginkgo_test_goldmaster.go
File renamed without changes
View
0  convert-fixtures/nested/nested_test.go → convert_fixtures/nested/nested_test.go
File renamed without changes
View
0  ...hout_gofiles/subpackage/nested_subpackage_test.go → ...hout_gofiles/subpackage/nested_subpackage_test.go
File renamed without changes
View
0  convert-fixtures/outside_package_test.go → convert_fixtures/outside_package_test.go
File renamed without changes
View
4 convert-fixtures/xunit_test.go → convert_fixtures/xunit_test.go
@@ -9,11 +9,11 @@ type UselessStruct struct {
T *testing.T
}
-var testFunc = func(t *testing.T, arg *string) { }
+var testFunc = func(t *testing.T, arg *string) {}
func TestSomethingImportant(t *testing.T) {
whatever := &UselessStruct{
- T: t,
+ T: t,
ImportantField: "twisty maze of passages",
}
app := "string value"
View
0  convert-goldmasters/extra_functions_test.go → convert_goldmasters/extra_functions_test.go
File renamed without changes
View
0  convert-goldmasters/fixtures_suite_test.go → convert_goldmasters/fixtures_suite_test.go
File renamed without changes
View
0  convert-goldmasters/nested_subpackage_test.go → convert_goldmasters/nested_subpackage_test.go
File renamed without changes
View
0  convert-goldmasters/nested_suite_test.go → convert_goldmasters/nested_suite_test.go
File renamed without changes
View
0  convert-goldmasters/nested_test.go → convert_goldmasters/nested_test.go
File renamed without changes
View
0  convert-goldmasters/outside_package_test.go → convert_goldmasters/outside_package_test.go
File renamed without changes
View
0  convert-goldmasters/suite_test.go → convert_goldmasters/suite_test.go
File renamed without changes
View
0  convert-goldmasters/xunit_test.go → convert_goldmasters/xunit_test.go
File renamed without changes
View
6 convert_test.go
@@ -88,7 +88,7 @@ func init() {
It("gracefully handles existing test suite files", func() {
withTempDir(func(dir string) {
cwd, err := os.Getwd()
- bytes, err := ioutil.ReadFile(filepath.Join(cwd, "convert-goldmasters", "fixtures_suite_test.go"))
+ bytes, err := ioutil.ReadFile(filepath.Join(cwd, "convert_goldmasters", "fixtures_suite_test.go"))
Expect(err).NotTo(HaveOccurred())
err = ioutil.WriteFile(filepath.Join(cwd, "tmp", "tmp_suite_test.go"), bytes, 0600)
Expect(err).NotTo(HaveOccurred())
@@ -107,7 +107,7 @@ func withTempDir(cb func(tempDir string)) {
err = os.MkdirAll(tempDir, os.ModeDir|os.ModeTemporary|os.ModePerm)
Expect(err).NotTo(HaveOccurred())
- copyFixturesIntoTempDir("convert-fixtures", tempDir)
+ copyFixturesIntoTempDir("convert_fixtures", tempDir)
cb(tempDir)
}
@@ -156,7 +156,7 @@ func readGoldMasterNamed(filename string) string {
cwd, err := os.Getwd()
Expect(err).NotTo(HaveOccurred())
- bytes, err := ioutil.ReadFile(filepath.Join(cwd, "convert-goldmasters", filename))
+ bytes, err := ioutil.ReadFile(filepath.Join(cwd, "convert_goldmasters", filename))
Expect(err).NotTo(HaveOccurred())
return string(bytes)
View
2  ginkgo/convert.go
@@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/onsi/ginkgo/ginkgo/convert"
- "os"
+ "os"
)
func convertPackage() {
Please sign in to comment.
Something went wrong with that request. Please try again.