| 1 | package execution_test |
| 2 | |
| 3 | import ( |
| 4 | "github.com/tomwright/dasel/v3/model" |
| 5 | _ "github.com/tomwright/dasel/v3/parsing/json" |
| 6 | "testing" |
| 7 | ) |
| 8 | |
| 9 | func TestFuncParse(t *testing.T) { |
| 10 | t.Run("json", testCase{ |
| 11 | s: `parse('json', '{"foo":"bar"}').foo`, |
| 12 | out: model.NewStringValue("bar"), |
| 13 | }.run) |
| 14 | } |