fix: README license, URL, add CI/CD and basic tests

This commit is contained in:
2026-04-10 22:04:10 -07:00
parent daa8464273
commit 6fae82946a
3 changed files with 87 additions and 4 deletions
+34
View File
@@ -0,0 +1,34 @@
package main
import (
"testing"
)
func TestToolNames(t *testing.T) {
tools := getAllTools()
expectedTools := []string{
"searxng_search",
"searxng_image_search",
"searxng_news_search",
"grep_search",
"github_file",
"github_batch_files",
"search_status",
"searxng_start",
"searxng_stop",
"searxng_config",
"searxng_engines_info",
}
if len(tools) != len(expectedTools) {
t.Errorf("Expected %d tools, got %d", len(expectedTools), len(tools))
}
}
func TestSearXNGConfig(t *testing.T) {
config := getDefaultSearXNGConfig()
if config == "" {
t.Error("Default SearXNG config should not be empty")
}
}