mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 15:14:52 +08:00
@@ -15,6 +15,26 @@ var pathTests = []struct {
|
||||
expectedTokens []interface{}
|
||||
expectedPostFix []interface{}
|
||||
}{
|
||||
{
|
||||
`envsubst(ne)`,
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY"),
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY"),
|
||||
},
|
||||
{
|
||||
`envsubst(nu)`,
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_UNSET"),
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_UNSET"),
|
||||
},
|
||||
{
|
||||
`envsubst(nu, ne)`,
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY_NO_UNSET"),
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY_NO_UNSET"),
|
||||
},
|
||||
{
|
||||
`envsubst(ne, nu)`,
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY_NO_UNSET"),
|
||||
append(make([]interface{}, 0), "ENVSUBST_NO_EMPTY_NO_UNSET"),
|
||||
},
|
||||
{
|
||||
`[.a, .b]`,
|
||||
append(make([]interface{}, 0), "[", "a", "UNION", "b", "]"),
|
||||
|
||||
Reference in New Issue
Block a user