MCPcopy Create free account
hub / github.com/GoTestTools/gotestfmt / Tokenize

Function Tokenize

tokenizer/tokenizer.go:17–21  ·  view source on GitHub ↗

Tokenize starts a reader of Event in the background that reads until the input is closed. This method starts a goroutine in the background and should be stopped by closing the input reader.

(input io.Reader)

Source from the content-addressed store, hash-verified

15// Tokenize starts a reader of Event in the background that reads until the input is closed. This method starts a
16// goroutine in the background and should be stopped by closing the input reader.
17func Tokenize(input io.Reader) <-chan Event {
18 output := make(chan Event)
19 go decode(input, output)
20 return output
21}
22
23type state string
24

Callers 2

TestTokenizationFunction · 0.92

Calls 1

decodeFunction · 0.85

Tested by 1

TestTokenizationFunction · 0.74