summaryrefslogtreecommitdiff
path: root/android/config_test.go
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2018-07-22 21:18:45 -0700
committer Dan Willemsen <dwillemsen@google.com> 2018-07-22 21:18:45 -0700
commit59339a29e1e8ec90752f6b9a65deb45ea49f93ce (patch)
tree23053e7f36f9cb7eb9ba9917bb93bbbcf0f2382e /android/config_test.go
parentee74203bfbc0071a71ee783220cd563d20e961e7 (diff)
Fix `go vet` issues
Test: go vet ./... Change-Id: Ifb936ccc5e2b5a2c3fcbbbcb54f680e2973ea1b3
Diffstat (limited to 'android/config_test.go')
-rw-r--r--android/config_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/config_test.go b/android/config_test.go
index 72942eb58..274d59fb6 100644
--- a/android/config_test.go
+++ b/android/config_test.go
@@ -50,7 +50,7 @@ func validateConfigAnnotations(configurable jsonConfigurable) (err error) {
}
type configType struct {
- populateMe *bool `json:"omitempty"`
+ PopulateMe *bool `json:"omitempty"`
}
func (c *configType) SetDefaultConfig() {
@@ -60,7 +60,7 @@ func (c *configType) SetDefaultConfig() {
func TestValidateConfigAnnotations(t *testing.T) {
config := configType{}
err := validateConfigAnnotations(&config)
- expectedError := `Field configType.populateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty".
+ expectedError := `Field configType.PopulateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty".
Did you mean to use an annotation of ",omitempty"?
(Alternatively, to change the json name of the field, rename the field in source instead.)`
if err.Error() != expectedError {