core: simplify interop functions

We now have the only interop table (system interops).
This commit is contained in:
Anna Shaleva 2021-05-11 17:40:03 +03:00
parent 6d59689d9c
commit 4b933f88a7
7 changed files with 23 additions and 42 deletions

View file

@ -94,10 +94,8 @@ func TestSyscallExecution(t *testing.T) {
ic := &interop.Context{}
core.SpawnVM(ic) // set Functions field
for _, fs := range ic.Functions {
for i := range fs {
// It will be set in test and we want to fail if calling invalid syscall.
fs[i].Func = nil
}
// It will be set in test and we want to fail if calling invalid syscall.
fs.Func = nil
}
for goName, tc := range interops {
t.Run(goName, func(t *testing.T) {