mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Added load_base64
This commit is contained in:
@@ -65,6 +65,14 @@ var loadScenarios = []expressionScenario{
|
||||
"D0, P[], (!!map)::this:\n is: a properties file\n cool: ay\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Load from base64 encoded file",
|
||||
document: "cool: things",
|
||||
expression: `.more_stuff = load_base64("../../examples/base64.txt")`,
|
||||
expected: []string{
|
||||
"D0, P[], (doc)::cool: things\nmore_stuff: my secret chilli recipe is....\n",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func TestLoadScenarios(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user