test

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveTDOA

func ResolveTDOA(ts ResolveTDOATestSuite) error

ResolveTDOA runs the given Resolve TDOA test-suite.

Types

type Point

type Point struct {
	// contains filtered or unexported fields
}

Point defines a geo point.

func NewPoint

func NewPoint(lat, long, alt float64) Point

NewPoint creates a new Point.

func (Point) Distance

func (p Point) Distance(other Point) float64

Distance returns the distance between this and a given point. Note that this is the direct distance, without taking the curve of the earth into account!

func (Point) LatLngAlt

func (p Point) LatLngAlt() (float64, float64, float64)

LatLngAlt returns the latitude, longitude and altitude of the Point.

type ResolveTDOATestSuite

type ResolveTDOATestSuite struct {
	Tests                []*TDOATest `protobuf:"bytes,1,rep,name=tests,proto3" json:"tests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ResolveTDOATestSuite) Descriptor

func (*ResolveTDOATestSuite) Descriptor() ([]byte, []int)

func (*ResolveTDOATestSuite) GetTests

func (m *ResolveTDOATestSuite) GetTests() []*TDOATest

func (*ResolveTDOATestSuite) ProtoMessage

func (*ResolveTDOATestSuite) ProtoMessage()

func (*ResolveTDOATestSuite) Reset

func (m *ResolveTDOATestSuite) Reset()

func (*ResolveTDOATestSuite) String

func (m *ResolveTDOATestSuite) String() string

func (*ResolveTDOATestSuite) XXX_DiscardUnknown

func (m *ResolveTDOATestSuite) XXX_DiscardUnknown()

func (*ResolveTDOATestSuite) XXX_Marshal

func (m *ResolveTDOATestSuite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveTDOATestSuite) XXX_Merge

func (dst *ResolveTDOATestSuite) XXX_Merge(src proto.Message)

func (*ResolveTDOATestSuite) XXX_Size

func (m *ResolveTDOATestSuite) XXX_Size() int

func (*ResolveTDOATestSuite) XXX_Unmarshal

func (m *ResolveTDOATestSuite) XXX_Unmarshal(b []byte) error

type TDOATest

type TDOATest struct {
	Request              *geo.ResolveTDOARequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	ExpectedResult       *geo.ResolveResult      `protobuf:"bytes,2,opt,name=expected_result,json=expectedResult,proto3" json:"expected_result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*TDOATest) Descriptor

func (*TDOATest) Descriptor() ([]byte, []int)

func (*TDOATest) GetExpectedResult

func (m *TDOATest) GetExpectedResult() *geo.ResolveResult

func (*TDOATest) GetRequest

func (m *TDOATest) GetRequest() *geo.ResolveTDOARequest

func (*TDOATest) ProtoMessage

func (*TDOATest) ProtoMessage()

func (*TDOATest) Reset

func (m *TDOATest) Reset()

func (*TDOATest) String

func (m *TDOATest) String() string

func (*TDOATest) XXX_DiscardUnknown

func (m *TDOATest) XXX_DiscardUnknown()

func (*TDOATest) XXX_Marshal

func (m *TDOATest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TDOATest) XXX_Merge

func (dst *TDOATest) XXX_Merge(src proto.Message)

func (*TDOATest) XXX_Size

func (m *TDOATest) XXX_Size() int

func (*TDOATest) XXX_Unmarshal

func (m *TDOATest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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