aboutsummaryrefslogtreecommitdiff
path: root/lib/ini/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ini/common_test.go')
-rw-r--r--lib/ini/common_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ini/common_test.go b/lib/ini/common_test.go
index 5ceaa3eb..c41de518 100644
--- a/lib/ini/common_test.go
+++ b/lib/ini/common_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package ini
@@ -110,12 +110,11 @@ func TestParseTag_fromStruct(t *testing.T) {
field reflect.StructField
tag string
got []string
- x int
)
vtype = reflect.TypeOf(adt)
- for x = 0; x < vtype.NumField(); x++ {
+ for x := range vtype.NumField() {
field = vtype.Field(x)
tag, _, _ = libreflect.Tag(field, "ini")