Documentation
¶
Overview ¶
Package interptest holds Go functions that the interpreter tests run two times: as compiled code and as interpreted code. Each function takes no argument and returns a value that the test compares.
Index ¶
- Constants
- Variables
- func Arithmetic() string
- func Assignments() string
- func Calls() string
- func Closures() string
- func Control() string
- func Conversions() string
- func Literals() string
- func Makes() string
- func Methods() string
- func Places() string
- func Ranges() string
- func Strings() string
- func Table() *interp.Table
- func Variables() string
- type Builder
- type Item
- type Kind
- type Render
- type Shape
- type Square
- type Wrapped
Constants ¶
const Limit = 3
Limit is an untyped constant.
const Scale float64 = 1.5
Scale is a typed constant.
Variables ¶
var Counter = 10
Counter is a package variable that a sample changes.
Functions ¶
func Arithmetic ¶
func Arithmetic() string
func Assignments ¶ added in v0.2.1
func Assignments() string
Assignments gives the order in which an assignment reads its operands: each call adds its name to the log. Go reads the operands of the left side, then the right side, both from left to right, and then stores from left to right.
func Conversions ¶
func Conversions() string
func Makes ¶ added in v0.2.1
func Makes() string
Makes gives the length and the capacity of each slice that make returns, and the sizes that are a panic in Go: a capacity below the length, and a negative size.
func Places ¶ added in v0.2.1
func Places() string
Places gives the variable that each store of an assignment changes. Go reads the slice, the map and the pointer of the left side before a store of the same statement gives the name a new value.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder collects text, as the node builder of a template does.
type Item ¶
Item is a row of the samples.