summaryrefslogtreecommitdiffstats
path: root/output/outputFormat_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /output/outputFormat_test.go
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'output/outputFormat_test.go')
-rw-r--r--output/outputFormat_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/output/outputFormat_test.go b/output/outputFormat_test.go
index fc45099f3..a150dbe7c 100644
--- a/output/outputFormat_test.go
+++ b/output/outputFormat_test.go
@@ -145,15 +145,15 @@ func TestDecodeFormats(t *testing.T) {
tests := []struct {
name string
- maps []map[string]interface{}
+ maps []map[string]any
shouldError bool
assert func(t *testing.T, name string, f Formats)
}{
{
"Redefine JSON",
- []map[string]interface{}{
+ []map[string]any{
{
- "JsON": map[string]interface{}{
+ "JsON": map[string]any{
"baseName": "myindex",
"isPlainText": "false",
},
@@ -171,9 +171,9 @@ func TestDecodeFormats(t *testing.T) {
},
{
"Add XML format with string as mediatype",
- []map[string]interface{}{
+ []map[string]any{
{
- "MYXMLFORMAT": map[string]interface{}{
+ "MYXMLFORMAT": map[string]any{
"baseName": "myxml",
"mediaType": "application/xml",
},
@@ -194,9 +194,9 @@ func TestDecodeFormats(t *testing.T) {
},
{
"Add format unknown mediatype",
- []map[string]interface{}{
+ []map[string]any{
{
- "MYINVALID": map[string]interface{}{
+ "MYINVALID": map[string]any{
"baseName": "mymy",
"mediaType": "application/hugo",
},
@@ -208,15 +208,15 @@ func TestDecodeFormats(t *testing.T) {
},
{
"Add and redefine XML format",
- []map[string]interface{}{
+ []map[string]any{
{
- "MYOTHERXMLFORMAT": map[string]interface{}{
+ "MYOTHERXMLFORMAT": map[string]any{
"baseName": "myotherxml",
"mediaType": media.XMLType,
},
},
{
- "MYOTHERXMLFORMAT": map[string]interface{}{
+ "MYOTHERXMLFORMAT": map[string]any{
"baseName": "myredefined",
},
},