Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user