go/src/unicode/utf8/utf8_test.go

// Validate the constants redefined from unicode.
func init() {}

// Validate the constants redefined from unicode.
func TestConstants(t *testing.T) {}

type Utf8Map

var utf8map

var surrogateMap

var testStrings

func TestFullRune(t *testing.T) {}

func TestEncodeRune(t *testing.T) {}

func TestAppendRune(t *testing.T) {}

func TestDecodeRune(t *testing.T) {}

func TestDecodeSurrogateRune(t *testing.T) {}

// Check that DecodeRune and DecodeLastRune correspond to
// the equivalent range loop.
func TestSequencing(t *testing.T) {}

func runtimeRuneCount(s string) int {}

// Check that a range loop, len([]rune(string)) optimization and
// []rune conversions visit the same runes.
// Not really a test of this package, but the assumption is used here and
// it's good to verify.
func TestRuntimeConversion(t *testing.T) {}

var invalidSequenceTests

func runtimeDecodeRune(s string) rune {}

func TestDecodeInvalidSequence(t *testing.T) {}

func testSequence(t *testing.T, s string) {}

// Check that negative runes encode as U+FFFD.
func TestNegativeRune(t *testing.T) {}

type RuneCountTest

var runecounttests

func TestRuneCount(t *testing.T) {}

func TestRuneCountNonASCIIAllocation(t *testing.T) {}

type RuneLenTest

var runelentests

func TestRuneLen(t *testing.T) {}

type ValidTest

var validTests

func TestValid(t *testing.T) {}

type ValidRuneTest

var validrunetests

func TestValidRune(t *testing.T) {}

func BenchmarkRuneCountTenASCIIChars(b *testing.B) {}

func BenchmarkRuneCountTenJapaneseChars(b *testing.B) {}

func BenchmarkRuneCountInStringTenASCIIChars(b *testing.B) {}

func BenchmarkRuneCountInStringTenJapaneseChars(b *testing.B) {}

var ascii100000

func BenchmarkValidTenASCIIChars(b *testing.B) {}

func BenchmarkValid100KASCIIChars(b *testing.B) {}

func BenchmarkValidTenJapaneseChars(b *testing.B) {}

func BenchmarkValidLongMostlyASCII(b *testing.B) {}

func BenchmarkValidLongJapanese(b *testing.B) {}

func BenchmarkValidStringTenASCIIChars(b *testing.B) {}

func BenchmarkValidString100KASCIIChars(b *testing.B) {}

func BenchmarkValidStringTenJapaneseChars(b *testing.B) {}

func BenchmarkValidStringLongMostlyASCII(b *testing.B) {}

func BenchmarkValidStringLongJapanese(b *testing.B) {}

var longStringMostlyASCII

var longStringJapanese

func init() {}

func BenchmarkEncodeASCIIRune(b *testing.B) {}

func BenchmarkEncodeSpanishRune(b *testing.B) {}

func BenchmarkEncodeJapaneseRune(b *testing.B) {}

func BenchmarkEncodeMaxRune(b *testing.B) {}

func BenchmarkEncodeInvalidRuneMaxPlusOne(b *testing.B) {}

func BenchmarkEncodeInvalidRuneSurrogate(b *testing.B) {}

func BenchmarkEncodeInvalidRuneNegative(b *testing.B) {}

func BenchmarkAppendASCIIRune(b *testing.B) {}

func BenchmarkAppendSpanishRune(b *testing.B) {}

func BenchmarkAppendJapaneseRune(b *testing.B) {}

func BenchmarkAppendMaxRune(b *testing.B) {}

func BenchmarkAppendInvalidRuneMaxPlusOne(b *testing.B) {}

func BenchmarkAppendInvalidRuneSurrogate(b *testing.B) {}

func BenchmarkAppendInvalidRuneNegative(b *testing.B) {}

func BenchmarkDecodeASCIIRune(b *testing.B) {}

func BenchmarkDecodeJapaneseRune(b *testing.B) {}

var boolSink

func BenchmarkFullRune(b *testing.B) {}