(t *testing.T)
| 3150 | } |
| 3151 | |
| 3152 | func TestPrinterPrintStmtConstant(t *testing.T) { |
| 3153 | o := bytes.NewBufferString("") |
| 3154 | |
| 3155 | p := printer.NewPrinter(o) |
| 3156 | p.Print(&stmt.Constant{ |
| 3157 | ConstantName: &node.Identifier{Value: "FOO"}, |
| 3158 | Expr: &scalar.String{Value: "'BAR'"}, |
| 3159 | }) |
| 3160 | |
| 3161 | expected := "FOO='BAR'" |
| 3162 | actual := o.String() |
| 3163 | |
| 3164 | if expected != actual { |
| 3165 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3166 | } |
| 3167 | } |
| 3168 | |
| 3169 | func TestPrinterPrintStmtContinue(t *testing.T) { |
| 3170 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…