20 lines
453 B
Go
20 lines
453 B
Go
|
|
package cmd
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestAgentCommand_PlanGeneration(t *testing.T) {
|
||
|
|
t.Log("Agent plan generation test placeholder — ready for expansion")
|
||
|
|
}
|
||
|
|
|
||
|
|
func TestAgentCommand_CleanCodeResponseIntegration(t *testing.T) {
|
||
|
|
input := "```go\npackage main\nfunc main() {}\n```"
|
||
|
|
expected := "package main\nfunc main() {}"
|
||
|
|
|
||
|
|
got := CleanCodeResponse(input)
|
||
|
|
if got != expected {
|
||
|
|
t.Errorf("CleanCodeResponse() = %q, want %q", got, expected)
|
||
|
|
}
|
||
|
|
}
|