Documentation ¶
Overview ¶
Package tests provides common functions used in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CaseSpec ¶
type CaseSpec struct { // Sections is the content of the test case // split by sections (delimited by "---") and then by lines. Sections [][]string // Map of key:value tags extracted from comments Tags map[string]string }
CaseSpec holds parsed testcase content. See ReadSpec.
type GuardedMemory ¶
type GuardedMemory struct { Data []byte // user data // contains filtered or unexported fields }
func GuardMemory ¶
func GuardMemory(userdata []byte) (*GuardedMemory, error)
GuardMemory puts user data at the end of CPU page(s) and unmaps the next page to catch off-buffer accesses.
func (*GuardedMemory) Free ¶
func (gm *GuardedMemory) Free() error
Free releases mapped pages to the system
Click to show internal directories.
Click to hide internal directories.