(tb testing.TB, typ ProgramType, retval int64)
| 164 | } |
| 165 | |
| 166 | func createProgram(tb testing.TB, typ ProgramType, retval int64) *Program { |
| 167 | tb.Helper() |
| 168 | |
| 169 | return mustNewProgram(tb, &ProgramSpec{ |
| 170 | Name: "test", |
| 171 | Type: typ, |
| 172 | Instructions: asm.Instructions{ |
| 173 | asm.LoadImm(asm.R0, retval, asm.DWord), |
| 174 | asm.Return(), |
| 175 | }, |
| 176 | License: "MIT", |
| 177 | }, nil) |
| 178 | } |
| 179 | |
| 180 | var basicProgramSpec = &ProgramSpec{ |
| 181 | Name: "test", |
no test coverage detected
searching dependent graphs…