go/src/regexp/syntax/parse_test.go

type parseTest

var parseTests

const testFlags

func TestParseSimple(t *testing.T) {}

var foldcaseTests

func TestParseFoldCase(t *testing.T) {}

var literalTests

func TestParseLiteral(t *testing.T) {}

var matchnlTests

func TestParseMatchNL(t *testing.T) {}

var nomatchnlTests

func TestParseNoMatchNL(t *testing.T) {}

// Test Parse -> Dump.
func testParseDump(t *testing.T, tests []parseTest, flags Flags) {}

// dump prints a string representation of the regexp showing
// the structure explicitly.
func dump(re *Regexp) string {}

var opNames

// dumpRegexp writes an encoding of the syntax tree for the regexp re to b.
// It is used during testing to distinguish between parses that might print
// the same using re's String method.
func dumpRegexp(b *strings.Builder, re *Regexp) {}

func mkCharClass(f func(rune) bool) string {}

func isUpperFold(r rune) bool {}

func TestFoldConstants(t *testing.T) {}

func TestAppendRangeCollapse(t *testing.T) {}

var invalidRegexps

var onlyPerl

var onlyPOSIX

func TestParseInvalidRegexps(t *testing.T) {}

func TestToStringEquivalentParse(t *testing.T) {}

var stringTests

func TestString(t *testing.T) {}