Debian Codegraph @

src/cmd/compile/internal/syntax/dumper_test.go

raw
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package syntax
6
7 import (
8 "testing"
9 )
10
11 func TestDump(t *testing.T) {
12 if testing.Short() {
13 t.Skip("skipping test in short mode")
14 }
15
16 ast, _ := ParseFile(*src_, func(err error) { t.Error(err) }, nil, CheckBranches)
17
18 if ast != nil {
19 Fdump(testOut(), ast)
20 }
21 }