Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { Properties []Property // List of Properties to be checked ImpVariables []string // Names of the Variables need to be tracked for Property Checking Stats map[string]*PropertyStats // Statistics about the property executed }
Checker stores the state required for checking the properties
func NewChecker ¶
NewChecker initailizes a new Checker
func (*Checker) Check ¶
Check checks proeprties under a provided context and returns list of property failures
func (*Checker) GetImportantVariables ¶
GetImportantVariables returns the list of all variables that are being used by all the properties.
func (*Checker) GetPropertyStatistics ¶
func (c *Checker) GetPropertyStatistics() map[string]*PropertyStats
GetPropertyStatistics returns the collected statistics about all the properties
type Property ¶
type Property struct { Name string // Name of the property Variables []Variable // List of all variables used in this property PropObj *eek.Eek }
Property represents a property/go function that needs to be checked during execution
type PropertyStats ¶
PropertyStats collects statistics about a property
type Variable ¶
type Variable struct { Name string // Fully qualified package name of the variable PropName string // Name Used in the Property Type string // Type of the Variable }
Variable represents the variable mapping between the name of the variable in the context and the name of the variable in the Property