MCPcopy Create free account
hub / github.com/copernet/copernicus / TestIsPushOnlyOnInvalidScripts

Function TestIsPushOnlyOnInvalidScripts

logic/lscript/lscript_test.go:555–561  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

553}
554
555func TestIsPushOnlyOnInvalidScripts(t *testing.T) {
556 s := script.NewEmptyScript()
557 s.PushOpCode(1)
558 if s.IsPushOnly() {
559 t.Errorf("IsPushOnly should return false on invalid scripts")
560 }
561}

Callers

nothing calls this directly

Calls 2

PushOpCodeMethod · 0.80
IsPushOnlyMethod · 0.80

Tested by

no test coverage detected