ldetesting

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousAreas

type AnonymousAreas struct {
	Rest []byte
	Data []byte
}

AnonymousAreas ...

func (*AnonymousAreas) Extract

func (p *AnonymousAreas) Extract(line []byte) (bool, error)

Extract ...

type BeforeLookup

type BeforeLookup struct {
	Rest string
	Data string
}

BeforeLookup ...

func (*BeforeLookup) Extract

func (p *BeforeLookup) Extract(line string) (bool, error)

Extract ...

type Boolean

type Boolean struct {
	Rest  string
	Check bool
}

Boolean ...

func (*Boolean) Extract

func (p *Boolean) Extract(line string) (bool, error)

Extract ...

type CheckPrefix

type CheckPrefix struct {
	Rest string
	Data string
}

CheckPrefix ...

func (*CheckPrefix) Extract

func (p *CheckPrefix) Extract(line string) (bool, error)

Extract ...

type Custom

type Custom struct {
	Rest string
	Time time.Time
	Addr struct {
		Valid bool
		IP    ip.IP
	}
}

Custom ...

func (*Custom) Extract

func (p *Custom) Extract(line string) (bool, error)

Extract ...

func (*Custom) GetAddrIP

func (p *Custom) GetAddrIP() (res ip.IP)

GetAddrIP ...

type CustomBuiltin

type CustomBuiltin struct {
	Rest  string
	Field int
}

CustomBuiltin ...

func (*CustomBuiltin) Extract

func (p *CustomBuiltin) Extract(line string) (bool, error)

Extract ...

type CustomStr

type CustomStr struct {
	Rest []byte
	Data string
}

CustomStr ...

func (*CustomStr) Extract

func (p *CustomStr) Extract(line []byte) (bool, error)

Extract ...

type Dec

type Dec struct {
	Rest []byte
	F1   int32
	F2   int64
	F3   struct {
		Lo uint64
		Hi uint64
	}
}

Dec ...

func (*Dec) Extract

func (p *Dec) Extract(line []byte) (bool, error)

Extract ...

type DecoderBranching

type DecoderBranching struct {
	Rest []byte
	Head struct {
		Valid bool
		Data  []byte
	}
}

DecoderBranching ...

func (*DecoderBranching) Extract

func (p *DecoderBranching) Extract(line []byte) (bool, error)

Extract ...

func (*DecoderBranching) GetHeadData

func (p *DecoderBranching) GetHeadData() (res []byte)

GetHeadData ...

type DecoderBranchingStress

type DecoderBranchingStress struct {
	Rest []byte
	Head struct {
		Valid bool
		Data  []byte
	}
}

DecoderBranchingStress ...

func (*DecoderBranchingStress) Extract

func (p *DecoderBranchingStress) Extract(line []byte) (bool, error)

Extract ...

func (*DecoderBranchingStress) GetHeadData

func (p *DecoderBranchingStress) GetHeadData() (res []byte)

GetHeadData ...

type DecoderOptionals

type DecoderOptionals struct {
	Rest []byte
	Int8 int8
	Head struct {
		Valid bool
		Data  []byte
	}
}

DecoderOptionals ...

func (*DecoderOptionals) Extract

func (p *DecoderOptionals) Extract(line []byte) (bool, error)

Extract ...

func (*DecoderOptionals) GetHeadData

func (p *DecoderOptionals) GetHeadData() (res []byte)

GetHeadData ...

type DecoderOptionalsStress

type DecoderOptionalsStress struct {
	Rest []byte
	Int8 int8
	Head struct {
		Valid bool
		Data  []byte
	}
}

DecoderOptionalsStress ...

func (*DecoderOptionalsStress) Extract

func (p *DecoderOptionalsStress) Extract(line []byte) (bool, error)

Extract ...

func (*DecoderOptionalsStress) GetHeadData

func (p *DecoderOptionalsStress) GetHeadData() (res []byte)

GetHeadData ...

type Decoders

type Decoders struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

Decoders ...

func (*Decoders) Extract

func (p *Decoders) Extract(line []byte) (bool, error)

Extract ...

type DecodersBounded

type DecodersBounded struct {
	Rest  []byte
	Int64 int64
}

DecodersBounded ...

func (*DecodersBounded) Extract

func (p *DecodersBounded) Extract(line []byte) (bool, error)

Extract ...

type DecodersBoundedStress

type DecodersBoundedStress struct {
	Rest  []byte
	Int64 int64
}

DecodersBoundedStress ...

func (*DecodersBoundedStress) Extract

func (p *DecodersBoundedStress) Extract(line []byte) (bool, error)

Extract ...

type DecodersBoundedString

type DecodersBoundedString struct {
	Rest    []byte
	Float64 float64
}

DecodersBoundedString ...

func (*DecodersBoundedString) Extract

func (p *DecodersBoundedString) Extract(line []byte) (bool, error)

Extract ...

type DecodersBoundedStringStress

type DecodersBoundedStringStress struct {
	Rest    []byte
	Float64 float64
}

DecodersBoundedStringStress ...

func (*DecodersBoundedStringStress) Extract

func (p *DecodersBoundedStringStress) Extract(line []byte) (bool, error)

Extract ...

type DecodersLimited

type DecodersLimited struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersLimited ...

func (*DecodersLimited) Extract

func (p *DecodersLimited) Extract(line []byte) (bool, error)

Extract ...

type DecodersLimitedStress

type DecodersLimitedStress struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersLimitedStress ...

func (*DecodersLimitedStress) Extract

func (p *DecodersLimitedStress) Extract(line []byte) (bool, error)

Extract ...

type DecodersLimitedString

type DecodersLimitedString struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersLimitedString ...

func (*DecodersLimitedString) Extract

func (p *DecodersLimitedString) Extract(line []byte) (bool, error)

Extract ...

type DecodersLimitedStringStress

type DecodersLimitedStringStress struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersLimitedStringStress ...

func (*DecodersLimitedStringStress) Extract

func (p *DecodersLimitedStringStress) Extract(line []byte) (bool, error)

Extract ...

type DecodersStress

type DecodersStress struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersStress ...

func (*DecodersStress) Extract

func (p *DecodersStress) Extract(line []byte) (bool, error)

Extract ...

type DecodersString

type DecodersString struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersString ...

func (*DecodersString) Extract

func (p *DecodersString) Extract(line []byte) (bool, error)

Extract ...

type DecodersStringStress

type DecodersStringStress struct {
	Rest    []byte
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []byte
}

DecodersStringStress ...

func (*DecodersStringStress) Extract

func (p *DecodersStringStress) Extract(line []byte) (bool, error)

Extract ...

type DoubleOpts

type DoubleOpts struct {
	Rest []byte
	Head struct {
		Valid bool
		Data  []byte
	}
	Rest1 struct {
		Valid bool
		Data  []byte
	}
}

DoubleOpts ...

func (*DoubleOpts) Extract

func (p *DoubleOpts) Extract(line []byte) (bool, error)

Extract ...

func (*DoubleOpts) GetHeadData

func (p *DoubleOpts) GetHeadData() (res []byte)

GetHeadData ...

func (*DoubleOpts) GetRest1Data

func (p *DoubleOpts) GetRest1Data() (res []byte)

GetRest1Data ...

type FixedLook

type FixedLook struct {
	Rest  []byte
	Data  int32
	Rest1 int32
}

FixedLook ...

func (*FixedLook) Extract

func (p *FixedLook) Extract(line []byte) (bool, error)

Extract ...

type FooBarBaz

type FooBarBaz struct {
	Rest  string
	Stuff string
	Bar   struct {
		Valid bool
		ID    struct {
			Valid     bool
			Foobarbaz string
		}
	}
	Baz string
}

FooBarBaz relates to https://github.com/sirkon/ldetool/issues/40

func (*FooBarBaz) Extract

func (p *FooBarBaz) Extract(line string) (bool, error)

Extract ...

func (*FooBarBaz) GetBarIDFoobarbaz

func (p *FooBarBaz) GetBarIDFoobarbaz() (res string)

GetBarIDFoobarbaz ...

type Hex

type Hex struct {
	Rest []byte
	F1   uint
	F2   uint8
	F3   uint16
	F4   uint32
	F5   uint64
}

Hex ...

func (*Hex) Extract

func (p *Hex) Extract(line []byte) (bool, error)

Extract ...

type IncludeChar

type IncludeChar struct {
	Rest   []byte
	Data   []byte
	Field2 int
}

IncludeChar ...

func (*IncludeChar) Extract

func (p *IncludeChar) Extract(line []byte) (bool, error)

Extract ...

type IncludeString

type IncludeString struct {
	Rest   []byte
	Data   []byte
	Field2 int
}

IncludeString ...

func (*IncludeString) Extract

func (p *IncludeString) Extract(line []byte) (bool, error)

Extract ...

type Jump

type Jump struct {
	Rest   []byte
	First  []byte
	Second []byte
	Third  []byte
	Fourth []byte
}

Jump ...

func (*Jump) Extract

func (p *Jump) Extract(line []byte) (bool, error)

Extract ...

type JustToCompile

type JustToCompile struct {
	Rest []byte
	Head uint16
	Tail uint16
}

JustToCompile ...

func (*JustToCompile) Extract

func (p *JustToCompile) Extract(line []byte) (bool, error)

Extract ...

type JustToCompileString

type JustToCompileString struct {
	Rest []byte
	Head uint16
	Tail uint16
}

JustToCompileString ...

func (*JustToCompileString) Extract

func (p *JustToCompileString) Extract(line []byte) (bool, error)

Extract ...

type LookupJump

type LookupJump struct {
	Rest []byte
}

LookupJump ...

func (*LookupJump) Extract

func (p *LookupJump) Extract(line []byte) (bool, error)

Extract ...

type Oct

type Oct struct {
	Rest []byte
	F1   uint
	F2   uint8
	F3   uint16
	F4   uint32
	F5   uint64
}

Oct ...

func (*Oct) Extract

func (p *Oct) Extract(line []byte) (bool, error)

Extract ...

type PassHeadingStringRegression

type PassHeadingStringRegression struct {
	Rest string
	Data string
}

PassHeadingStringRegression ...

func (*PassHeadingStringRegression) Extract

func (p *PassHeadingStringRegression) Extract(line string) (bool, error)

Extract ...

type Prefixes

type Prefixes struct {
	Rest  []byte
	Data  int32
	Rest1 int32
}

Prefixes ...

func (*Prefixes) Extract

func (p *Prefixes) Extract(line []byte) (bool, error)

Extract ...

type Regression1

type Regression1 struct {
	Rest  string
	Pid   int32
	Comm  string
	State uint8
	Ppid  int32
}

Regression1 ...

func (*Regression1) Extract

func (p *Regression1) Extract(line string) (bool, error)

Extract ...

type RegressionCheck1

type RegressionCheck1 struct {
	Rest   string
	Time   string
	Pump   int8
	PState struct {
		Valid bool
		State string
	}
	IState struct {
		Valid bool
		State string
	}
}

RegressionCheck1 ...

func (*RegressionCheck1) Extract

func (p *RegressionCheck1) Extract(line string) (bool, error)

Extract ...

func (*RegressionCheck1) GetIStateState

func (p *RegressionCheck1) GetIStateState() (res string)

GetIStateState ...

func (*RegressionCheck1) GetPStateState

func (p *RegressionCheck1) GetPStateState() (res string)

GetPStateState ...

type RegressionCheck2

type RegressionCheck2 struct {
	Rest string
	Time string
}

RegressionCheck2 ...

func (*RegressionCheck2) Extract

func (p *RegressionCheck2) Extract(line string) (bool, error)

Extract ...

type RegressionCheck3

type RegressionCheck3 struct {
	Rest string
}

RegressionCheck3 ...

func (*RegressionCheck3) Extract

func (p *RegressionCheck3) Extract(line string) (bool, error)

Extract ...

type RestLength

type RestLength struct {
	Rest []byte
}

RestLength ...

func (*RestLength) Extract

func (p *RestLength) Extract(line []byte) (bool, error)

Extract ...

type Rule

type Rule struct {
	Rest     string
	Data     string
	Signed   int
	Unsigned uint
	Str      string
}

Rule ...

func (*Rule) Extract

func (p *Rule) Extract(line string) (bool, error)

Extract ...

type Shift1

type Shift1 struct {
	Rest []byte
	B    []byte
}

Shift1 ...

func (*Shift1) Extract

func (p *Shift1) Extract(line []byte) (bool, error)

Extract ...

type Shift2

type Shift2 struct {
	Rest []byte
	B    []byte
}

Shift2 ...

func (*Shift2) Extract

func (p *Shift2) Extract(line []byte) (bool, error)

Extract ...

type Shift3

type Shift3 struct {
	Rest []byte
	B    []byte
}

Shift3 ...

func (*Shift3) Extract

func (p *Shift3) Extract(line []byte) (bool, error)

Extract ...

type Shift4

type Shift4 struct {
	Rest []byte
	B    []byte
}

Shift4 ...

func (*Shift4) Extract

func (p *Shift4) Extract(line []byte) (bool, error)

Extract ...

type ShouldBeImportWithCustomType

type ShouldBeImportWithCustomType struct {
	Rest   string
	First  time.Time
	Second time.Time
}

ShouldBeImportWithCustomType ...

func (*ShouldBeImportWithCustomType) Extract

func (p *ShouldBeImportWithCustomType) Extract(line string) (bool, error)

Extract ...

type SilentAreas

type SilentAreas struct {
	Rest string
	Alt1 struct {
		Valid  bool
		Amount int
	}
	Alt2 struct {
		Valid  bool
		Amount string
	}
}

SilentAreas ...

func (*SilentAreas) Extract

func (p *SilentAreas) Extract(line string) (bool, error)

Extract ...

func (*SilentAreas) GetAlt1Amount

func (p *SilentAreas) GetAlt1Amount() (res int)

GetAlt1Amount ...

func (*SilentAreas) GetAlt2Amount

func (p *SilentAreas) GetAlt2Amount() (res string)

GetAlt2Amount ...

type Split

type Split struct {
	Rest  []byte
	Name  []byte
	Count []byte
}

Split ...

func (*Split) Extract

func (p *Split) Extract(line []byte) (bool, error)

Extract ...

type SplitString

type SplitString struct {
	Rest  []byte
	Name  []byte
	Count []byte
}

SplitString ...

func (*SplitString) Extract

func (p *SplitString) Extract(line []byte) (bool, error)

Extract ...

type Star

type Star struct {
	Rest []byte
	F    int
	B    int
}

Star ...

func (*Star) Extract

func (p *Star) Extract(line []byte) (bool, error)

Extract ...

type Str

type Str struct {
	Rest []byte
	F1   string
	F2   []byte
}

Str ...

func (*Str) Extract

func (p *Str) Extract(line []byte) (bool, error)

Extract ...

type TargetConstraintsCheck

type TargetConstraintsCheck struct {
	Rest []byte
}

TargetConstraintsCheck ...

func (*TargetConstraintsCheck) Extract

func (p *TargetConstraintsCheck) Extract(line []byte) (bool, error)

Extract ...

type TrickyDateParsing

type TrickyDateParsing struct {
	Rest string
	Full struct {
		Valid     bool
		Day       int
		Month     int
		Year      int
		Hour      int
		Minute    int
		Second    int
		Microsecs int
	}
	Hour struct {
		Valid     bool
		Hour      int
		Minute    int
		Second    int
		Microsecs int
	}
	Seconds struct {
		Valid     bool
		Second    int
		Microsecs int
	}
}

TrickyDateParsing ...

func (*TrickyDateParsing) Extract

func (p *TrickyDateParsing) Extract(line string) (bool, error)

Extract ...

func (*TrickyDateParsing) GetFullDay

func (p *TrickyDateParsing) GetFullDay() (res int)

GetFullDay ...

func (*TrickyDateParsing) GetFullHour

func (p *TrickyDateParsing) GetFullHour() (res int)

GetFullHour ...

func (*TrickyDateParsing) GetFullMicrosecs

func (p *TrickyDateParsing) GetFullMicrosecs() (res int)

GetFullMicrosecs ...

func (*TrickyDateParsing) GetFullMinute

func (p *TrickyDateParsing) GetFullMinute() (res int)

GetFullMinute ...

func (*TrickyDateParsing) GetFullMonth

func (p *TrickyDateParsing) GetFullMonth() (res int)

GetFullMonth ...

func (*TrickyDateParsing) GetFullSecond

func (p *TrickyDateParsing) GetFullSecond() (res int)

GetFullSecond ...

func (*TrickyDateParsing) GetFullYear

func (p *TrickyDateParsing) GetFullYear() (res int)

GetFullYear ...

func (*TrickyDateParsing) GetHourHour

func (p *TrickyDateParsing) GetHourHour() (res int)

GetHourHour ...

func (*TrickyDateParsing) GetHourMicrosecs

func (p *TrickyDateParsing) GetHourMicrosecs() (res int)

GetHourMicrosecs ...

func (*TrickyDateParsing) GetHourMinute

func (p *TrickyDateParsing) GetHourMinute() (res int)

GetHourMinute ...

func (*TrickyDateParsing) GetHourSecond

func (p *TrickyDateParsing) GetHourSecond() (res int)

GetHourSecond ...

func (*TrickyDateParsing) GetSecondsMicrosecs

func (p *TrickyDateParsing) GetSecondsMicrosecs() (res int)

GetSecondsMicrosecs ...

func (*TrickyDateParsing) GetSecondsSecond

func (p *TrickyDateParsing) GetSecondsSecond() (res int)

GetSecondsSecond ...

type URL

type URL struct {
	Rest     []byte
	UserPass struct {
		Valid    bool
		User     []byte
		Password []byte
	}
	User struct {
		Valid bool
		User  []byte
	}
	Host   []byte
	Port   uint16
	DBName []byte
}

URL ...

func (*URL) Extract

func (p *URL) Extract(line []byte) (bool, error)

Extract ...

func (*URL) GetUserPassPassword

func (p *URL) GetUserPassPassword() (res []byte)

GetUserPassPassword ...

func (*URL) GetUserPassUser

func (p *URL) GetUserPassUser() (res []byte)

GetUserPassUser ...

func (*URL) GetUserUser

func (p *URL) GetUserUser() (res []byte)

GetUserUser ...

Jump to

Keyboard shortcuts

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