go/src/encoding/base64/base64_test.go

type testpair

var pairs

// Do nothing to a reference base64 string (leave in standard format)
func stdRef(ref string) string {}

// Convert a reference string to URL-encoding
func urlRef(ref string) string {}

// Convert a reference string to raw, unpadded format
func rawRef(ref string) string {}

// Both URL and unpadding conversions
func rawURLRef(ref string) string {}

const encodeStd

var funnyEncoding

func funnyRef(ref string) string {}

type encodingTest

var encodingTests

var bigtest

func testEqual(t *testing.T, msg string, args ...any) bool {}

func TestEncode(t *testing.T) {}

func TestEncoder(t *testing.T) {}

func TestEncoderBuffering(t *testing.T) {}

func TestDecode(t *testing.T) {}

func TestDecoder(t *testing.T) {}

func TestDecoderBuffering(t *testing.T) {}

func TestDecodeCorrupt(t *testing.T) {}

func TestDecodeBounds(t *testing.T) {}

func TestEncodedLen(t *testing.T) {}

func TestDecodedLen(t *testing.T) {}

func TestBig(t *testing.T) {}

func TestNewLineCharacters(t *testing.T) {}

type nextRead

type faultInjectReader

func (r *faultInjectReader) Read(p []byte) (int, error) {}

// tests that we don't ignore errors from our underlying reader
func TestDecoderIssue3577(t *testing.T) {}

func TestDecoderIssue4779(t *testing.T) {}

func TestDecoderIssue7733(t *testing.T) {}

func TestDecoderIssue15656(t *testing.T) {}

func BenchmarkEncodeToString(b *testing.B) {}

func BenchmarkDecodeString(b *testing.B) {}

func BenchmarkNewEncoding(b *testing.B) {}

func TestDecoderRaw(t *testing.T) {}