Skip to content

Commit e351f04

Browse files
akoclaude
andcommitted
fix: pass HelpStmt to execHelp in test (signature changed to two-arg)
The execHelp function signature was updated to accept a *ast.HelpStmt for topic-based help. Update the mock test to pass an empty HelpStmt so the call matches the two-argument signature. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2a5be7f commit e351f04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mdl/executor/cmd_misc_mock_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package executor
55
import (
66
"testing"
77

8+
"github.com/mendixlabs/mxcli/mdl/ast"
89
"github.com/mendixlabs/mxcli/mdl/backend/mock"
910
"github.com/mendixlabs/mxcli/mdl/types"
1011
)
@@ -64,7 +65,7 @@ func TestShowVersion_NoSchemaHash(t *testing.T) {
6465

6566
func TestHelp_Mock(t *testing.T) {
6667
ctx, buf := newMockCtx(t)
67-
assertNoError(t, execHelp(ctx))
68+
assertNoError(t, execHelp(ctx, &ast.HelpStmt{}))
6869

6970
out := buf.String()
7071
assertContainsStr(t, out, "MDL Commands")

0 commit comments

Comments
 (0)