- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestParseFile (0.19 sec)
-
src/cmd/compile/internal/syntax/parser_test.go
} func TestIssue17697(t *testing.T) { _, err := Parse(nil, bytes.NewReader(nil), nil, nil, 0) // return with parser error, don't panic if err == nil { t.Errorf("no error reported") } } func TestParseFile(t *testing.T) { _, err := ParseFile("", nil, nil, 0) if err == nil { t.Error("missing io error") } var first error _, err = ParseFile("", func(err error) { if first == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 16:30:19 UTC 2024 - 12.2K bytes - Viewed (0) -
src/go/parser/parser_test.go
return true case "parser.go.orig": return true // permit but should be ignored by ParseDir } return false } func dirFilter(f fs.FileInfo) bool { return nameFilter(f.Name()) } func TestParseFile(t *testing.T) { src := "package p\nvar _=s[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]+\ns[::]" _, err := ParseFile(token.NewFileSet(), "", src, 0) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0)