testutil

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownLanguages = map[Lang]string{
	"ja": "japanese",
	"vi": "vietnamese",
	"zh": "chinese",
	"ru": "russian",
	"hr": "croatian",
	"hu": "hungarian",
	"eo": "esperanto",
	"la": "latin",
	"es": "spanish",
	"sk": "slovak",
	"lt": "lithuanian",
	"da": "danish",
	"cs": "czech",
	"tr": "turkish",
	"sv": "swedish",
	"et": "estonian",
	"pl": "polish",
	"sl": "slovenian",
	"ro": "romanian",
	"lv": "latvian",
	"is": "icelandic",
	"de": "german",
	"fa": "persian",
	"en": "english",
	"si": "sinhala",
	"he": "hebrew",
	"rm": "roman",
	"el": "greek",
	"ko": "korean",
}

Functions

This section is empty.

Types

type GoldenCase

type GoldenCase struct {
	Lang    Lang
	Text    []byte
	Weights map[string][]byte
}

type GoldenTest

type GoldenTest struct {
	Name  string
	Cases []GoldenCase
}

func (*GoldenTest) Decode

func (golden *GoldenTest) Decode(r io.Reader) error

func (*GoldenTest) DecodeFromFile

func (golden *GoldenTest) DecodeFromFile(path string) error

func (*GoldenTest) Encode

func (golden *GoldenTest) Encode(w io.Writer) error

func (*GoldenTest) EncodeToFile

func (golden *GoldenTest) EncodeToFile(path string) error

type Lang

type Lang string

func (Lang) Known

func (l Lang) Known() bool

func (Lang) Long

func (l Lang) Long() string

func (Lang) MatchesCollation

func (l Lang) MatchesCollation(collation string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL