Added tests for examples

This commit is contained in:
Eduard Urbach 2024-06-29 21:40:14 +02:00
parent a0edc45e19
commit 1510f88165
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 87 additions and 3 deletions

View file

@ -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)
}