aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/config/merge_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-19 12:52:30 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-12-22 02:13:00 +0000
commita83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch)
tree7d3c28b24229429936a631e8ceb24135856b257d /pkg/config/merge_test.go
parent8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff)
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'pkg/config/merge_test.go')
-rw-r--r--pkg/config/merge_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/config/merge_test.go b/pkg/config/merge_test.go
index 6785534f1..53d8a2116 100644
--- a/pkg/config/merge_test.go
+++ b/pkg/config/merge_test.go
@@ -51,19 +51,19 @@ func TestMergeJSONs(t *testing.T) {
func TestPatchJSON(t *testing.T) {
tests := []struct {
left string
- patch map[string]interface{}
+ patch map[string]any
result string
}{
{
`{"a":1,"b":2}`,
- map[string]interface{}{"b": "string val"},
+ map[string]any{"b": "string val"},
`{"a":1,"b":"string val"}`,
},
{
`{"a":1,"b":2}`,
- map[string]interface{}{
- "a": map[string]interface{}{
- "b": map[string]interface{}{
+ map[string]any{
+ "a": map[string]any{
+ "b": map[string]any{
"c": 5,
},
},
@@ -72,9 +72,9 @@ func TestPatchJSON(t *testing.T) {
},
{
`{}`,
- map[string]interface{}{
- "a": map[string]interface{}{
- "b": map[string]interface{}{
+ map[string]any{
+ "a": map[string]any{
+ "b": map[string]any{
"c": 0,
},
},