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

Function TestValueStack_Count

vm/neovm/value_stack_test.go:32–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30)
31
32func TestValueStack_Count(t *testing.T) {
33 r := NewValueStack(4)
34 val, err := types.VmValueFromBigInt(big.NewInt(9999))
35 assert.Equal(t, err, nil)
36 err = r.Push(val)
37 assert.Equal(t, err, nil)
38 val2, err := types.VmValueFromBigInt(big.NewInt(8888))
39 assert.Equal(t, err, nil)
40 r.Push(val2)
41 assert.Equal(t, r.Count(), 2)
42
43}
44
45func TestValueStack_Pop(t *testing.T) {
46 r := NewValueStack(4)

Callers

nothing calls this directly

Calls 4

PushMethod · 0.95
CountMethod · 0.95
VmValueFromBigIntFunction · 0.92
NewValueStackFunction · 0.85

Tested by

no test coverage detected