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

Function value2json

vm/neovm/stack_opcode_test.go:43–51  ·  view source on GitHub ↗
(t *testing.T, expect types.VmValue)

Source from the content-addressed store, hash-verified

41type Value interface{}
42
43func value2json(t *testing.T, expect types.VmValue) string {
44 //e, err := expect.ConvertNeoVmValueHexString()
45 e, err := expect.Stringify()
46 assert.Nil(t, err)
47 exp, err := json.Marshal(e)
48 assert.Nil(t, err)
49
50 return string(exp)
51}
52
53func assertEqual(t *testing.T, expect, actual types.VmValue) {
54 assert.Equal(t, value2json(t, expect), value2json(t, actual))

Callers 1

assertEqualFunction · 0.85

Calls 2

StringifyMethod · 0.80
MarshalMethod · 0.80

Tested by

no test coverage detected