Initial commit: web_hghl_server

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 16:28:14 +08:00
co-authored by Claude Opus 4.7
commit 65fca60622
653 changed files with 135901 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package llmstxt
import (
"strings"
"testing"
)
func TestWriteImportantPagesUsesWebRoutes(t *testing.T) {
t.Parallel()
var b strings.Builder
writeImportantPages(&b, "https://91jxporn.com")
out := b.String()
for _, forbidden := range []string{"/tag/all", "/comicsList", "/search/hot/"} {
if strings.Contains(out, forbidden) {
t.Fatalf("important pages should not contain legacy path %q:\n%s", forbidden, out)
}
}
for _, required := range []string{
"/search/hot)",
"/video)",
"/nav)",
"/application)",
} {
if !strings.Contains(out, required) {
t.Fatalf("important pages missing %q:\n%s", required, out)
}
}
}