MCPcopy
hub / github.com/pquerna/ffjson / TestBasicLexing

Function TestBasicLexing

fflib/v1/lexer_test.go:80–88  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestBasicLexing(t *testing.T) {
81 ffl := NewFFLexer([]byte(`{}`))
82 toks := scanAll(ffl)
83 assertTokensEqual(t, []FFTok{
84 FFTok_left_bracket,
85 FFTok_right_bracket,
86 FFTok_eof,
87 }, toks)
88}
89
90func TestHelloWorld(t *testing.T) {
91 ffl := NewFFLexer([]byte(`{"hello":"world"}`))

Callers

nothing calls this directly

Calls 3

NewFFLexerFunction · 0.85
scanAllFunction · 0.85
assertTokensEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…