We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793fce6 commit 463f167Copy full SHA for 463f167
pkg/yaml/formattest/encode_test.go
@@ -140,6 +140,8 @@ func TestAliasKey(t *testing.T) {
140
name: "alias_key",
141
folder: "alias_key",
142
configureDecoder: noopDecoder,
143
- configureEncoder: noopEncoder,
+ configureEncoder: func(enc *yaml.Encoder) {
144
+ enc.SetCorrectAliasKeys(true)
145
+ },
146
}.Run(t)
147
}
pkg/yaml/formattest/testcase.go
@@ -32,7 +32,7 @@ func noopDecoder(_ *yaml.Decoder) {}
32
33
type encoderConfigureFunc func(*yaml.Encoder)
34
35
-func noopEncoder(_ *yaml.Encoder) {}
+// func noopEncoder(_ *yaml.Encoder) {}
36
37
type formatTestCase struct {
38
name string
0 commit comments