MCPcopy Index your code
hub / github.com/apache/answer / TestUrlTitle

Function TestUrlTitle

pkg/htmltext/htmltext_test.go:79–88  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func TestUrlTitle(t *testing.T) {
80 list := []string{
81 "hello你好😂...",
82 "这是一个,标题,title",
83 }
84 for _, title := range list {
85 formatTitle := UrlTitle(title)
86 fmt.Println(formatTitle)
87 }
88}
89
90func TestFindFirstMatchedWord(t *testing.T) {
91 var (

Callers

nothing calls this directly

Calls 1

UrlTitleFunction · 0.85

Tested by

no test coverage detected