mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-06-24 23:10:10 +02:00
18 lines
439 B
Go
18 lines
439 B
Go
package multiagent
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestInjectShellToolGuidance(t *testing.T) {
|
|
got := injectShellToolGuidance("base", []string{"nmap"})
|
|
if got != "base" {
|
|
t.Fatalf("expected unchanged, got %q", got)
|
|
}
|
|
got = injectShellToolGuidance("base", []string{"exec", "nmap"})
|
|
if !strings.Contains(got, "exec/execute") || !strings.Contains(got, "base") {
|
|
t.Fatalf("expected shell guidance appended, got %q", got)
|
|
}
|
|
}
|