yq/pkg/yqlib/treeops/operator_traverse_path_test.go
Mike Farah 73cf6224f2 wip
2020-10-20 13:53:26 +11:00

22 lines
361 B
Go

package treeops
import (
"testing"
)
var traversePathOperatorScenarios = []expressionScenario{
{
document: `{a: {b: apple}}`,
expression: `.a`,
expected: []string{
"D0, P[a], (!!map)::{b: apple}\n",
},
},
}
func TestTraversePathOperatorScenarios(t *testing.T) {
for _, tt := range traversePathOperatorScenarios {
testScenario(t, &tt)
}
}