testutils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testutils 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{ TEID, Seq uint32 }{0x11223344, 0x00000001}

TestBearerInfo is just for testing v2.Messages. Don't use this.

Functions

func Run

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

Run is just for testing v2.Messages. Don't use this.

Types

type DecodeFunc

type DecodeFunc func([]byte) (Serializeable, error)

DecodeFunc is just for testing v2.Messages. Don't use this.

type Serializeable

type Serializeable interface {
	Serialize() ([]byte, error)
	Len() int
}

Serializeable is just for testing v2.Messages. Don't use this.

type TestCase

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

TestCase is just for testing v2.Messages. Don't use this.

Jump to

Keyboard shortcuts

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