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

Function TestPushBytes

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

Source from the content-addressed store, hash-verified

425}
426
427func TestPushBytes(t *testing.T) {
428 checkMultiOpCode(t, []byte{byte(PUSHBYTES1), byte(1)}, nil, []Value{1})
429 code := make([]byte, 0)
430 code = append(code, byte(PUSHBYTES75))
431 for i := 0; i < int(PUSHBYTES75); i++ {
432 code = append(code, byte(1))
433 }
434 code2 := make([]byte, len(code)-1, cap(code))
435 copy(code2, code[1:])
436 checkMultiOpCode(t, code, nil, []Value{code2})
437}
438
439func TestHashOpCode(t *testing.T) {
440 data := []byte{1, 2, 3, 4, 5, 6, 7, 8}

Callers

nothing calls this directly

Calls 1

checkMultiOpCodeFunction · 0.85

Tested by

no test coverage detected