goProject/trunk/framework/sensitiveWordsMgr/sensitiveWords_test.go

23 lines
307 B
Go
Raw Normal View History

2025-01-06 16:01:02 +08:00
package sensitiveWordsMgr
import (
"testing"
)
// type Persion struct {
// name string
// }
// 屏蔽字详细信息
func Test1(t *testing.T) {
//启动获取敏感字
refreshSensitiveWord()
words, pos, exist := SensitiveWords("测试,测试")
if exist {
t.Log(words, pos)
}
t.Log("END")
}