lash/custom-engin #20

Merged
lash merged 13 commits from lash/custom-engin into master 2025-02-06 11:11:49 +01:00
2 changed files with 0 additions and 15 deletions
Showing only changes of commit 3d9eeddab8 - Show all commits

View File

@ -125,7 +125,6 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
h.st = h.pe.GetState() h.st = h.pe.GetState()
h.ca = h.pe.GetMemory() h.ca = h.pe.GetMemory()
``
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)
if ok { if ok {
ctx = context.WithValue(ctx, "SessionId", sessionId) ctx = context.WithValue(ctx, "SessionId", sessionId)

View File

@ -175,20 +175,6 @@ func TestInit(t *testing.T) {
input: []byte("1"), input: []byte("1"),
expectedResult: resource.Result{}, expectedResult: resource.Result{},
}, },
{
name: "Move to top node on empty input",
setup: func() (*MenuHandlers, context.Context) {
pe := persist.NewPersister(testStore).WithSession(sessionId).WithContent(st, ca)
h := &MenuHandlers{
flagManager: fm,
pe: pe,
}
st.Code = []byte("some pending bytecode")
return h, context.WithValue(ctx, "SessionId", sessionId)
},
input: []byte(""),
expectedResult: resource.Result{},
},
} }
for _, tt := range tests { for _, tt := range tests {