Rename UpdateYaml to UpdateYamlValue

We are going to add other ways to update yaml documents in the future.
This commit is contained in:
Stefan Haller 2023-06-08 08:38:46 +02:00
parent bf685cf832
commit a14794bf5c
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
)
func TestUpdateYaml(t *testing.T) {
func TestUpdateYamlValue(t *testing.T) {
tests := []struct {
name string
in string
@ -53,7 +53,7 @@ func TestUpdateYaml(t *testing.T) {
for _, test := range tests {
test := test
t.Run(test.name, func(t *testing.T) {
out, actualErr := UpdateYaml([]byte(test.in), test.path, test.value)
out, actualErr := UpdateYamlValue([]byte(test.in), test.path, test.value)
if test.expectedErr == "" {
assert.NoError(t, actualErr)
} else {