# Packages
Package test contains utilities used in the policy engine's test suite.
# Functions
Backoff returns a delay with an expontential backoff based on the number of retries.
BFS performs a breadth first traversal calling f for each node starting from u.
Close reads the remaining bytes from the response and then closes it to ensure that the connection is freed.
Compare returns 0 if a equals b, -1 if a is less than b, and 1 if b is than a.
DefaultBackoff returns a delay with an expontential backoff based on the number of retries.
DFS performs a depth first traversal calling f for each node starting from u.
DFSPath returns a path from node a to node z found by performing a depth first traversal.
MustMarshalJSON returns the JSON encoding of x
If the data cannot be encoded, this function will panic.
MustUnmarshalJSON parse the JSON encoded data and returns the result.
NewEnumFlag returns a new EnumFlag that has a defaultValue and vs enumerated values.
NewFIFO returns a new FIFO queue containing elements ts starting with the left-most argument at the front.
NewHashMap returns a new empty HashMap.
NewJSONDecoder returns a new decoder that reads from r.
NewLIFO returns a new LIFO queue containing elements ts starting with the left-most argument at the bottom.
Reference returns a pointer to its argument unless the argument already is a pointer.
RoundTrip encodes to JSON, and decodes the result again.
Unmarshal decodes a YAML or JSON value into the specified type.
UnmarshalJSON parses the JSON encoded data and stores the result in the value pointed to by x.