MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestPushData

Function TestPushData

vm/neovm/stack_opcode_test.go:421–425  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

419}
420
421func TestPushData(t *testing.T) {
422 checkMultiOpCode(t, []byte{byte(PUSHDATA1), byte(1), byte(2)}, nil, []Value{2})
423 checkMultiOpCode(t, []byte{byte(PUSHDATA2), byte(0x01), byte(0x00), byte(2)}, nil, []Value{2})
424 checkMultiOpCode(t, []byte{byte(PUSHDATA4), byte(0x01), byte(0x00), byte(0x00), byte(0x00), byte(2)}, nil, []Value{2})
425}
426
427func TestPushBytes(t *testing.T) {
428 checkMultiOpCode(t, []byte{byte(PUSHBYTES1), byte(1)}, nil, []Value{1})

Callers

nothing calls this directly

Calls 1

checkMultiOpCodeFunction · 0.85

Tested by

no test coverage detected