generate test to ensure code generation worked

This commit is contained in:
Michael McLoughlin
2018-11-24 17:53:17 -08:00
parent 0edbdb064f
commit 6d3e3be578
6 changed files with 98 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
package inst
//go:generate avogen -data ../data -output ztable.go godata
//go:generate avogen -data ../data -output ztable_test.go godatatest
func Lookup(opcode string) (Instruction, bool) {
for _, i := range Instructions {