Update, bugfixes on diff and edit handling

This commit is contained in:
2026-02-18 21:49:05 +00:00
parent 9205b2bc26
commit 6980d3b294
23 changed files with 3406 additions and 2083 deletions
+8
View File
@@ -52,6 +52,7 @@ func Hello() string {
}
if result == nil {
t.Fatal("handlePing() returned nil")
return
}
if len(result.Content) == 0 {
t.Fatal("handlePing() returned empty content")
@@ -70,6 +71,7 @@ func Hello() string {
}
if result == nil {
t.Fatal("handleFileRead() returned nil")
return
}
if len(result.Content) == 0 {
t.Fatal("handleFileRead() returned empty content")
@@ -90,6 +92,7 @@ func Hello() string {
}
if result == nil {
t.Fatal("handleASTQuery() returned nil")
return
}
})
@@ -110,6 +113,7 @@ func Hello() string {
}
if previewResult == nil {
t.Fatal("handleEditPreview() returned nil")
return
}
// Verify file unchanged after preview
@@ -127,6 +131,7 @@ func Hello() string {
}
if applyResult == nil {
t.Fatal("handleEditApply() returned nil")
return
}
// Verify file changed after apply
@@ -352,6 +357,7 @@ func Add(a, b int) int {
}
if readResult == nil {
t.Fatal("handleFileRead() returned nil")
return
}
// 2. Query AST
@@ -367,6 +373,7 @@ func Add(a, b int) int {
}
if queryResult == nil {
t.Fatal("handleASTQuery() returned nil")
return
}
// 3. Preview edit
@@ -384,6 +391,7 @@ func Add(a, b int) int {
}
if editResult == nil {
t.Fatal("handleEditPreview() returned nil")
return
}
})
}