tpl/transform: Don't fail on "no data to transform"

Fixes #12964
This commit is contained in:
Bjørn Erik Pedersen
2024-10-18 10:30:36 +02:00
parent e971b7d866
commit 42f37b4e98
2 changed files with 4 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ func TestUnmarshal(t *testing.T) {
a;b;c`, mime: media.Builtin.CSVType}, map[string]any{"DElimiter": ";", "Comment": "%"}, func(r [][]string) {
b.Assert([][]string{{"a", "b", "c"}}, qt.DeepEquals, r)
}},
{``, nil, nil},
{` `, nil, nil},
// errors
{"thisisnotavaliddataformat", nil, false},
{testContentResource{key: "r1", content: `invalid&toml"`, mime: media.Builtin.TOMLType}, nil, false},