Documentation ¶
Index ¶
- Constants
- func AssertBasic(t *testing.T, escaper escape.Escaper)
- func AssertBasicURLEscaper(t *testing.T, e escape.Escaper)
- func AssertBasicURLEscaperExceptPercent(t *testing.T, e escape.Escaper)
- func AssertEscapingByte(t *testing.T, e escape.Escaper, want string, c byte)
- func AssertEscapingRune(t *testing.T, e escape.Escaper, want string, r rune)
- func AssertEscapingUnicode(t *testing.T, e escape.Escaper, want string, hi, lo rune)
- func AssertUnescapedByte(t *testing.T, e escape.Escaper, c byte)
- func AssertUnescapedRune(t *testing.T, e escape.Escaper, r rune)
Constants ¶
const ( MinHighSurrogate = rune(0xd800) MaxHighSurrogate = rune(0xdbff) MinLowSurrogate = rune(0xdc00) MaxLowSurrogate = rune(0xdfff) SmallestSurrogate = rune(0xd800 + 0xdc00) LargestSurrogate = rune(0xdbff + 0xdfff) MaxBMPCodePoint = rune(65535) MinSupplementaryCodePoint = rune(65536) MinCodePoint = rune(0) MaxCodePoint = rune(1114111) )
Common unicode literals.
Variables ¶
This section is empty.
Functions ¶
func AssertBasic ¶
AssertBasic asserts common expected behaviour of escapers.
func AssertBasicURLEscaper ¶
AssertBasicURLEscaper asserts common expected behaviour of URI escapers.
func AssertBasicURLEscaperExceptPercent ¶
AssertBasicURLEscaperExceptPercent asserts common expected behaviour of URI escapers. You should call assertBasicURLEscaper() unless the escaper explicitly does not escape '%'.
func AssertEscapingByte ¶
AssertEscapingByte asserts that an escaper escapes the given character into the expected string.
func AssertEscapingRune ¶
AssertEscapingRune asserts that an runes.Escaper escapes the given rune into the expected string.
func AssertEscapingUnicode ¶
AssertEscapingUnicode asserts that a Unicode escaper escapes the given hi/lo surrogate pair into the expected string.
func AssertUnescapedByte ¶
AssertUnescapedByte asserts that an escaper does not escape the given character.
Types ¶
This section is empty.