testutil

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testutil is an internal package to be used for unit tests. Don't use this.

Index

Constants

This section is empty.

Variables

View Source
var TestBearerInfo = struct {
	SEID uint64
	Seq  uint32
}{0x1122334455667788, 0x00000001}

TestBearerInfo is just for testing Message. Don't use this.

Functions

func Run

func Run(t *testing.T, cases []TestCase, decode ParseFunc)

Run is just for testing Message. Don't use this.

Types

type ParseFunc

type ParseFunc func([]byte) (Serializable, error)

ParseFunc is just for testing Message. Don't use this.

type Serializable

type Serializable interface {
	Marshal() ([]byte, error)
	MarshalLen() int
}

Serializable is just for testing Message. Don't use this.

type TestCase

type TestCase struct {
	Description string
	Structured  Serializable
	Serialized  []byte
}

TestCase is just for testing Message. Don't use this.

Jump to

Keyboard shortcuts

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