Home
last modified time | relevance | path

Searched refs:token_to_entries (Results 1 – 5 of 5) sorted by relevance

/external/pigweed/pw_tokenizer/py/
Dtokens_test.py129 self.assertEqual(len(db.token_to_entries), 3)
131 self.assertEqual(db.token_to_entries[1][0].string, 'Whoa there!')
132 self.assertFalse(db.token_to_entries[2])
133 self.assertEqual(db.token_to_entries[3][0].string, "This one's OK")
134 self.assertFalse(db.token_to_entries[4])
135 self.assertEqual(db.token_to_entries[5][0].string, "I'm %s fine")
136 self.assertFalse(db.token_to_entries[6])
140 self.assertEqual(db.token_to_entries[0x9999], [])
142 matches = db.token_to_entries[0x2e668cd6]
150 matches = db.token_to_entries[0xe13b0f94]
[all …]
Ddetokenize_test.py246 expected_tokens = frozenset(detok.database.token_to_entries.keys())
258 frozenset(detok.database.token_to_entries.keys()))
263 frozenset(detok.database.token_to_entries.keys()))
270 frozenset(detok.database.token_to_entries.keys()))
276 expected_tokens = frozenset(detok.database.token_to_entries.keys())
289 frozenset(detok.database.token_to_entries.keys()))
296 frozenset(detok.database.token_to_entries.keys()))
302 expected_tokens = frozenset(detok.database.token_to_entries.keys())
306 frozenset(detok.database.token_to_entries.keys()))
/external/pigweed/pw_trace_tokenized/py/pw_trace_tokenized/
Dtrace_tokenized.py118 if len(db.token_to_entries[token]) == 0:
122 token_string = str(db.token_to_entries[token][0])
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py145 def token_to_entries(self) -> Dict[int, List[TokenizedStringEntry]]: member in Database
160 for token, entries in self.token_to_entries.items():
Ddetokenize.py195 for entry in self.database.token_to_entries[token]