Generator multiunit tests print what is being analyzed

This commit is contained in:
Sasha Koshka 2024-02-28 11:50:41 -05:00
parent b3ae80e809
commit 802a492be1
2 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (this *generator) method (key entity.Key) (*llvm.Function, error) {
ty, exists := this.tree.Types[key.StripMethod()]
if !exists {
return nil, errNotFound("method " + key.String())
return nil, errNotFound("owner of method " + key.String())
}
if method, exists := ty.Methods[key.Method]; exists {

View File

@ -40,6 +40,7 @@ func testUnits (
// dependencies
for index := 0; index < len(dependencies) - 1; index += 2 {
address := entity.Address(dependencies[index])
test.Log("analyzing", address, "UUID", address.UUID())
source := dependencies[index + 1]
ast, ok := treeOf(test, address, source, true)
if !ok { return }
@ -61,6 +62,7 @@ func testUnits (
// main
address := entity.Address("main.fspl")
test.Log("analyzing MAIN", address, "UUID", address.UUID())
ast, ok := treeOf(test, address, main, false)
if !ok { return }
err := tree.Analyze(address.UUID(), nicknames, ast)