(t *testing.T)
| 28 | ) |
| 29 | |
| 30 | func TestProgramBuilder_PushBytes(t *testing.T) { |
| 31 | N := 20000 |
| 32 | builder := NewProgramBuilder() |
| 33 | for i := 0; i < N; i++ { |
| 34 | builder.PushNum(uint16(i)) |
| 35 | } |
| 36 | parser := newProgramParser(builder.Finish()) |
| 37 | for i := 0; i < N; i++ { |
| 38 | n, err := parser.ReadNum() |
| 39 | assert.Nil(t, err) |
| 40 | assert.Equal(t, n, uint16(i)) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestGetProgramInfo(t *testing.T) { |
| 45 | N := 10 |
nothing calls this directly
no test coverage detected