()
| 108 | |
| 109 | |
| 110 | def test_tokenlist_token_matching(): |
| 111 | t1 = sql.Token(T.Keyword, 'foo') |
| 112 | t2 = sql.Token(T.Punctuation, ',') |
| 113 | x = sql.TokenList([t1, t2]) |
| 114 | assert x.token_matching([lambda t: t.ttype is T.Keyword], 0) == t1 |
| 115 | assert x.token_matching([lambda t: t.ttype is T.Punctuation], 0) == t2 |
| 116 | assert x.token_matching([lambda t: t.ttype is T.Keyword], 1) is None |
| 117 | |
| 118 | |
| 119 | def test_stream_simple(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…