Expand description
Testing utilities for Koto crates
Structs§
- Output
Capture - Captures output from Koto in a String
Functions§
- check_
script_ output - Runs a script and validates its output
- check_
script_ output_ with_ vm - Runs a script and validates its output using a provided Vm
- list
- Returns a KValue::List from a slice of KValues
- number_
list - Returns a KValue::List from a slice of integers
- number_
tuple - Returns a KValue::Tuple from a slice of integers
- range
- Returns a KValue::Range from given bounds
- run_
koto_ examples_ in_ markdown - Runs Koto code examples found in a markdown document
- run_
test_ script - Runs a script using the provided Vm, optionally checking its output
- script_
instructions - Renders a script to a string with its corresponding compiled instructions
- tuple
- Returns a KValue::Tuple from a slice of KValues