...

Package enctest

import "golang.org/x/text/encoding/internal/enctest"
Overview
Index

Overview ▾

func Benchmark

func Benchmark(b *testing.B, enc encoding.Encoding)

func TestEncoding

func TestEncoding(t *testing.T, e encoding.Encoding, encoded, utf8, prefix, suffix string)

func TestFile

func TestFile(t *testing.T, e encoding.Encoding)

type Transcoder

Encoder or Decoder

type Transcoder interface {
    transform.Transformer
    Bytes([]byte) ([]byte, error)
    String(string) (string, error)
}