(t *testing.T)
| 125 | } |
| 126 | |
| 127 | func Test_scriptCompressor_isToScriptID(t *testing.T) { |
| 128 | var s *script.Script |
| 129 | sc := newScriptCompressor(&s) |
| 130 | assert.Nil(t, sc.isToScriptID()) |
| 131 | |
| 132 | bs := make([]byte, 23) |
| 133 | bs[0] = opcodes.OP_HASH160 |
| 134 | bs[1] = 20 |
| 135 | bs[22] = opcodes.OP_EQUAL |
| 136 | s = script.NewScriptRaw(bs) |
| 137 | sc = newScriptCompressor(&s) |
| 138 | assert.NotNil(t, sc.isToScriptID()) |
| 139 | } |
| 140 | |
| 141 | func Test_scriptCompressor_isToPubKey(t *testing.T) { |
| 142 | var s *script.Script |
nothing calls this directly
no test coverage detected