tests

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tests exports shared patterns for use by the other bytematcher packages

Index

Constants

This section is empty.

Variables

View Source
var TestAnyMasks = []AnyMask{AnyMask(0xAA)}
View Source
var TestChoices = []Choice{
	Choice{TestSequences[0], TestSequences[2]},
	Choice{TestSequences[2], TestSequences[0]},
	Choice{TestSequences[4], TestSequences[5]},
	Choice{TestSequences[3]},
	Choice{
		TestSequences[6],
		TestSequences[7],
		TestSequences[8],
		TestSequences[9],
		TestSequences[10],
		TestSequences[11],
		TestSequences[12],
		TestSequences[13],
		TestSequences[14],
		TestSequences[15],
	},
	Choice{TestSequences[0], TestLists[0]},
}

Test Choices are exported so they can be used by the other bytematcher packages.

View Source
var TestLists = []List{
	List{TestSequences[0], TestSequences[2]},
	List{TestSequences[3], TestSequences[4]},
}

TestLists are exported so they can be used by the other bytematcher packages.

View Source
var TestMasks = []Mask{Mask(0xAA)}
View Source
var TestNotSequences = []Not{
	Not{Sequence("test")},
	Not{Sequence("test")},
	Not{Sequence{255}},
	Not{Sequence{0}},
	Not{Sequence{10}},
}

TestNotSequences are exported so they can be used by the other bytematcher packages.

View Source
var TestSequences = []Sequence{
	Sequence("test"),
	Sequence("test"),
	Sequence("testy"),
	Sequence("TEST"),
	Sequence("TESTY"),
	Sequence("YNESS"),
	Sequence{'a'},
	Sequence{'b'},
	Sequence{'c'},
	Sequence{'d'},
	Sequence{'e'},
	Sequence{'f'},
	Sequence{'g'},
	Sequence{'h'},
	Sequence{'i'},
	Sequence{'j'},
	Sequence("junk"),
	Sequence("23"),
}

TestSequences are exported so they can be used by the other bytematcher packages.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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