(t *testing.T)
| 2029 | } |
| 2030 | |
| 2031 | func TestPrintVariable(t *testing.T) { |
| 2032 | o := bytes.NewBufferString("") |
| 2033 | |
| 2034 | p := printer.NewPrettyPrinter(o, " ") |
| 2035 | p.Print(&expr.Variable{VarName: &expr.Variable{VarName: &node.Identifier{Value: "var"}}}) |
| 2036 | |
| 2037 | expected := `$$var` |
| 2038 | actual := o.String() |
| 2039 | |
| 2040 | if expected != actual { |
| 2041 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 2042 | } |
| 2043 | } |
| 2044 | |
| 2045 | func TestPrintYieldFrom(t *testing.T) { |
| 2046 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…