mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 09:04:58 +08:00
Fixed passing of readonly context in pipe
This commit is contained in:
@@ -21,6 +21,14 @@ var pipeOperatorScenarios = []expressionScenario{
|
||||
"D0, P[], (doc)::{a: cat, b: dog, c: same}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Don't pass readonly context",
|
||||
expression: `(3 + 4) | ({} | .b = "dog")`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::b: dog\n",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func TestPipeOperatorScenarios(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user