aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/parser_test.go')
-rw-r--r--conf/parser_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/parser_test.go b/conf/parser_test.go
index da8539ab..157c8a5d 100644
--- a/conf/parser_test.go
+++ b/conf/parser_test.go
@@ -45,7 +45,7 @@ func noError(t *testing.T, err error) bool {
return false
}
-func equal(t *testing.T, expected, actual interface{}) bool {
+func equal(t *testing.T, expected, actual any) bool {
if reflect.DeepEqual(expected, actual) {
return true
}
@@ -54,7 +54,7 @@ func equal(t *testing.T, expected, actual interface{}) bool {
return false
}
-func lenTest(t *testing.T, actualO interface{}, expected int) bool {
+func lenTest(t *testing.T, actualO any, expected int) bool {
actual := reflect.ValueOf(actualO).Len()
if reflect.DeepEqual(expected, actual) {
return true
@@ -64,7 +64,7 @@ func lenTest(t *testing.T, actualO interface{}, expected int) bool {
return false
}
-func contains(t *testing.T, list, element interface{}) bool {
+func contains(t *testing.T, list, element any) bool {
listValue := reflect.ValueOf(list)
for i := 0; i < listValue.Len(); i++ {
if reflect.DeepEqual(listValue.Index(i).Interface(), element) {