refactor: mcphost planner

This commit is contained in:
lilong.129
2025-05-18 21:55:01 +08:00
parent e35d644acf
commit 3f1ee03529
13 changed files with 595 additions and 220 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ func TestValidAssertions(t *testing.T) {
imageBase64, size, err := builtin.LoadImage(tc.imagePath)
require.NoError(t, err)
result, err := asserter.Assert(&AssertOptions{
result, err := asserter.Assert(context.Background(), &AssertOptions{
Assertion: tc.assertion,
Screenshot: imageBase64,
Size: size,
@@ -94,7 +94,7 @@ func TestInvalidParameters(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
_, err := asserter.Assert(&AssertOptions{
_, err := asserter.Assert(context.Background(), &AssertOptions{
Assertion: tc.assertion,
Screenshot: tc.screenshot,
Size: tc.size,