summaryrefslogtreecommitdiffstats
path: root/tests/test_utils.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-07-04 20:36:08 +0200
committerGitHub <noreply@github.com>2023-07-04 18:36:08 +0000
commit88f835192d1a554d233b0ec4daa33276b7eb2910 (patch)
tree438140c295791e64a3b78dcfeae57701bcf296c3 /tests/test_utils.go
parent00dbba7f4266032a2b91b760e7c611950ffad096 (diff)
downloadgitea-88f835192d1a554d233b0ec4daa33276b7eb2910.tar.gz
gitea-88f835192d1a554d233b0ec4daa33276b7eb2910.zip
Replace `interface{}` with `any` (#25686)
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`. Basically the same [as golang did](https://github.com/golang/go/commit/2580d0e08d5e9f979b943758d3c49877fb2324cb).
Diffstat (limited to 'tests/test_utils.go')
-rw-r--r--tests/test_utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils.go b/tests/test_utils.go
index bf7d1b3fbe..fc4247eba8 100644
--- a/tests/test_utils.go
+++ b/tests/test_utils.go
@@ -30,7 +30,7 @@ import (
"github.com/stretchr/testify/assert"
)
-func exitf(format string, args ...interface{}) {
+func exitf(format string, args ...any) {
fmt.Printf(format+"\n", args...)
os.Exit(1)
}
@@ -247,6 +247,6 @@ func PrintCurrentTest(t testing.TB, skip ...int) func() {
}
// Printf takes a format and args and prints the string to os.Stdout
-func Printf(format string, args ...interface{}) {
+func Printf(format string, args ...any) {
testlogger.Printf(format, args...)
}