Added tests for examples
This commit is contained in:
parent
a0edc45e19
commit
1510f88165
4 changed files with 87 additions and 3 deletions
|
@ -63,3 +63,9 @@ func (r *Result) EachFunction(caller *Function, traversed map[*Function]bool, ca
|
|||
r.EachFunction(callee, traversed, call)
|
||||
}
|
||||
}
|
||||
|
||||
// Write write the final executable to disk.
|
||||
func (r *Result) Write(path string) error {
|
||||
code, data := r.Finalize()
|
||||
return Write(path, code, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue