MCPcopy
hub / github.com/kashav/fsql / TestTokenizer_ReadUntil

Function TestTokenizer_ReadUntil

tokenizer/tokenizer_test.go:186–202  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestTokenizer_ReadUntil(t *testing.T) {
187 type Case struct {
188 input string
189 until []rune
190 expected string
191 }
192
193 // TODO: Complete these cases.
194 cases := []Case{}
195
196 for _, c := range cases {
197 actual := NewTokenizer(c.input).readUntil(c.until...)
198 if !reflect.DeepEqual(actual, c.expected) {
199 t.Fatalf("\nExpected: %v\n Got: %v", c.expected, actual)
200 }
201 }
202}

Callers

nothing calls this directly

Calls 2

NewTokenizerFunction · 0.85
readUntilMethod · 0.80

Tested by

no test coverage detected