text: golang.org/x/text/internal/testtext Index | Files

package testtext

import "golang.org/x/text/internal/testtext"

Package testtext contains test data that is of common use to the text repository.

Index

Package Files

codesize.go flag.go gc.go go1_7.go text.go

Constants

const (
    ASCII = "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. " +
        "The quick brown fox jumps over the lazy dog. "

    Vietnamese = "" /* 814 byte string literal not displayed */

    Russian = "" /* 619 byte string literal not displayed */

    Greek = "" /* 752 byte string literal not displayed */

    Arabic = "" /* 571 byte string literal not displayed */

    Hebrew = "" /* 576 byte string literal not displayed */

    TwoByteUTF8 = Russian + Greek + Arabic + Hebrew

    Thai = "" /* 990 byte string literal not displayed */

    ThreeByteUTF8 = Thai

    Japanese = "" /* 376 byte string literal not displayed */

    Chinese = "" /* 464 byte string literal not displayed */

    Korean = "" /* 474 byte string literal not displayed */

    CJK = Chinese + Japanese + Korean

    All = ASCII + Vietnamese + TwoByteUTF8 + ThreeByteUTF8 + CJK
)

func AllocsPerRun Uses

func AllocsPerRun(runs int, f func()) (avg float64)

AllocsPerRun wraps testing.AllocsPerRun.

func Bench Uses

func Bench(b *testing.B, name string, fn func(b *testing.B)) bool

func CodeSize Uses

func CodeSize(s string) (int, error)

CodeSize builds the given code sample and returns the binary size or en error if an error occurred. The code sample typically will look like this:

package main
import "golang.org/x/text/somepackage"
func main() {
    somepackage.Func() // reference Func to cause it to be linked in.
}

See dict_test.go in the display package for an example.

func Run Uses

func Run(t *testing.T, name string, fn func(t *testing.T)) bool

func SkipIfNotLong Uses

func SkipIfNotLong(t *testing.T)

SkipIfNotLong returns whether long tests should be performed.

Package testtext imports 10 packages (graph). Updated 2017-10-17. Refresh now. Tools for package owners.