From a1aa82229b340d2d417133f78c19ca841d40efe1 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Tue, 26 Apr 2016 09:18:29 -0500 Subject: [PATCH 1/2] fixes for 'go vet' warnings --- config/common/entry.go | 2 +- docx/docx_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/common/entry.go b/config/common/entry.go index 61700c1c..28fba5af 100644 --- a/config/common/entry.go +++ b/config/common/entry.go @@ -9,7 +9,7 @@ import ( type Entry struct { URL string `yaml:"url"` Revision string `yaml:"revision"` - Path string `yaml:path"` + Path string `yaml:"path"` } // GetConfigFile is a getter for the config file name. Will return DefaultConfigYaml value if none has been set. diff --git a/docx/docx_test.go b/docx/docx_test.go index cb06df13..63ae10a6 100644 --- a/docx/docx_test.go +++ b/docx/docx_test.go @@ -28,7 +28,7 @@ var _ = Describe("Docx", func() { DescribeTable("FormatControl", func(standardControl string, expectedData string) { openControl := docx.OpenControlDocx{ - models.LoadData(filepath.Join("..", "fixtures", "opencontrol_fixtures"), ""), + *models.OpenControl: models.LoadData(filepath.Join("..", "fixtures", "opencontrol_fixtures"), ""), } actualData := openControl.FormatControl(standardControl) assert.Equal(GinkgoT(), expectedData, actualData) From f892bea8a1fedc2528fa0d2d90646caf426856df Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Tue, 26 Apr 2016 09:29:51 -0500 Subject: [PATCH 2/2] fix embedded struct creation --- docx/docx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docx/docx_test.go b/docx/docx_test.go index 63ae10a6..618b9960 100644 --- a/docx/docx_test.go +++ b/docx/docx_test.go @@ -28,7 +28,7 @@ var _ = Describe("Docx", func() { DescribeTable("FormatControl", func(standardControl string, expectedData string) { openControl := docx.OpenControlDocx{ - *models.OpenControl: models.LoadData(filepath.Join("..", "fixtures", "opencontrol_fixtures"), ""), + OpenControl: models.LoadData(filepath.Join("..", "fixtures", "opencontrol_fixtures"), ""), } actualData := openControl.FormatControl(standardControl) assert.Equal(GinkgoT(), expectedData, actualData)