Documentation
¶
Overview ¶
Package testutil holds helpers shared by the analysis test packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Terms ¶
func Terms(ts analysis.TokenStream) []string
Terms returns the term text of each token in ts.
func Tokens ¶
func Tokens(text string) analysis.TokenStream
Tokens splits text on whitespace into a TokenStream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.