testutils

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 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 uint32
	Seq  uint16
}{0x11223344, 0x00000001}

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

Functions

func Run

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

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

Types

type ParseFunc

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

ParseFunc is just for testing gtpv2.Messages. Don't use this.

type Serializable

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

Serializable is just for testing gtpv2.Messages. Don't use this.

type TestCase

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

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

Jump to

Keyboard shortcuts

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