From 6fd22133b3d610d8f85cce709c99f8a8cbe1a4a2 Mon Sep 17 00:00:00 2001 From: Alexander Staubo Date: Sat, 29 Sep 2018 13:12:14 -0400 Subject: [PATCH] New suffix for golden files. --- tests/data/core/{4.2.1_array.go => 4.2.1_array.go.output} | 0 tests/data/core/{object.go => object.go.output} | 0 tests/data/core/{objectEmpty.go => objectEmpty.go.output} | 0 tests/data/core/{objectNested.go => objectNested.go.output} | 0 tests/data/core/{primitives.go => primitives.go.output} | 0 tests/data/core/{ref.go => ref.go.output} | 0 .../data/core/{refExternalFile.go => refExternalFile.go.output} | 0 ...ExternalFileWithDupe.go => refExternalFileWithDupe.go.output} | 0 tests/data/crossPackage/{other.go => other.go.output} | 0 tests/data/crossPackage/{schema.go => schema.go.output} | 0 tests/data/misc/{case.go => case.go.output} | 0 tests/data/misc/{caseDupes.go => caseDupes.go.output} | 0 ...mptyJustDefinitions.go => rootEmptyJustDefinitions.go.output} | 0 .../{rootIsArrayOfString.go => rootIsArrayOfString.go.output} | 0 .../{10.1_description.go => 10.1_description.go.output} | 0 tests/data/validation/{6.1.2_enum.go => 6.1.2_enum.go.output} | 0 .../{6.5.3_requiredFields.go => 6.5.3_requiredFields.go.output} | 0 tests/integration_test.go | 1 + 18 files changed, 1 insertion(+) rename tests/data/core/{4.2.1_array.go => 4.2.1_array.go.output} (100%) rename tests/data/core/{object.go => object.go.output} (100%) rename tests/data/core/{objectEmpty.go => objectEmpty.go.output} (100%) rename tests/data/core/{objectNested.go => objectNested.go.output} (100%) rename tests/data/core/{primitives.go => primitives.go.output} (100%) rename tests/data/core/{ref.go => ref.go.output} (100%) rename tests/data/core/{refExternalFile.go => refExternalFile.go.output} (100%) rename tests/data/core/{refExternalFileWithDupe.go => refExternalFileWithDupe.go.output} (100%) rename tests/data/crossPackage/{other.go => other.go.output} (100%) rename tests/data/crossPackage/{schema.go => schema.go.output} (100%) rename tests/data/misc/{case.go => case.go.output} (100%) rename tests/data/misc/{caseDupes.go => caseDupes.go.output} (100%) rename tests/data/misc/{rootEmptyJustDefinitions.go => rootEmptyJustDefinitions.go.output} (100%) rename tests/data/misc/{rootIsArrayOfString.go => rootIsArrayOfString.go.output} (100%) rename tests/data/validation/{10.1_description.go => 10.1_description.go.output} (100%) rename tests/data/validation/{6.1.2_enum.go => 6.1.2_enum.go.output} (100%) rename tests/data/validation/{6.5.3_requiredFields.go => 6.5.3_requiredFields.go.output} (100%) diff --git a/tests/data/core/4.2.1_array.go b/tests/data/core/4.2.1_array.go.output similarity index 100% rename from tests/data/core/4.2.1_array.go rename to tests/data/core/4.2.1_array.go.output diff --git a/tests/data/core/object.go b/tests/data/core/object.go.output similarity index 100% rename from tests/data/core/object.go rename to tests/data/core/object.go.output diff --git a/tests/data/core/objectEmpty.go b/tests/data/core/objectEmpty.go.output similarity index 100% rename from tests/data/core/objectEmpty.go rename to tests/data/core/objectEmpty.go.output diff --git a/tests/data/core/objectNested.go b/tests/data/core/objectNested.go.output similarity index 100% rename from tests/data/core/objectNested.go rename to tests/data/core/objectNested.go.output diff --git a/tests/data/core/primitives.go b/tests/data/core/primitives.go.output similarity index 100% rename from tests/data/core/primitives.go rename to tests/data/core/primitives.go.output diff --git a/tests/data/core/ref.go b/tests/data/core/ref.go.output similarity index 100% rename from tests/data/core/ref.go rename to tests/data/core/ref.go.output diff --git a/tests/data/core/refExternalFile.go b/tests/data/core/refExternalFile.go.output similarity index 100% rename from tests/data/core/refExternalFile.go rename to tests/data/core/refExternalFile.go.output diff --git a/tests/data/core/refExternalFileWithDupe.go b/tests/data/core/refExternalFileWithDupe.go.output similarity index 100% rename from tests/data/core/refExternalFileWithDupe.go rename to tests/data/core/refExternalFileWithDupe.go.output diff --git a/tests/data/crossPackage/other.go b/tests/data/crossPackage/other.go.output similarity index 100% rename from tests/data/crossPackage/other.go rename to tests/data/crossPackage/other.go.output diff --git a/tests/data/crossPackage/schema.go b/tests/data/crossPackage/schema.go.output similarity index 100% rename from tests/data/crossPackage/schema.go rename to tests/data/crossPackage/schema.go.output diff --git a/tests/data/misc/case.go b/tests/data/misc/case.go.output similarity index 100% rename from tests/data/misc/case.go rename to tests/data/misc/case.go.output diff --git a/tests/data/misc/caseDupes.go b/tests/data/misc/caseDupes.go.output similarity index 100% rename from tests/data/misc/caseDupes.go rename to tests/data/misc/caseDupes.go.output diff --git a/tests/data/misc/rootEmptyJustDefinitions.go b/tests/data/misc/rootEmptyJustDefinitions.go.output similarity index 100% rename from tests/data/misc/rootEmptyJustDefinitions.go rename to tests/data/misc/rootEmptyJustDefinitions.go.output diff --git a/tests/data/misc/rootIsArrayOfString.go b/tests/data/misc/rootIsArrayOfString.go.output similarity index 100% rename from tests/data/misc/rootIsArrayOfString.go rename to tests/data/misc/rootIsArrayOfString.go.output diff --git a/tests/data/validation/10.1_description.go b/tests/data/validation/10.1_description.go.output similarity index 100% rename from tests/data/validation/10.1_description.go rename to tests/data/validation/10.1_description.go.output diff --git a/tests/data/validation/6.1.2_enum.go b/tests/data/validation/6.1.2_enum.go.output similarity index 100% rename from tests/data/validation/6.1.2_enum.go rename to tests/data/validation/6.1.2_enum.go.output diff --git a/tests/data/validation/6.5.3_requiredFields.go b/tests/data/validation/6.5.3_requiredFields.go.output similarity index 100% rename from tests/data/validation/6.5.3_requiredFields.go rename to tests/data/validation/6.5.3_requiredFields.go.output diff --git a/tests/integration_test.go b/tests/integration_test.go index a0452de0..0d0d43e0 100644 --- a/tests/integration_test.go +++ b/tests/integration_test.go @@ -89,6 +89,7 @@ func testExampleFile(t *testing.T, generator *generator.Generator, fileName stri if outputName == "-" { outputName = strings.TrimSuffix(filepath.Base(fileName), ".json") + ".go" } + outputName += ".output" goldenFileName := filepath.Join(filepath.Dir(fileName), outputName)