Searched refs:token_to_entries (Results 1 – 5 of 5) sorted by relevance
129 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 …]
246 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()))
118 if len(db.token_to_entries[token]) == 0:122 token_string = str(db.token_to_entries[token][0])
145 def token_to_entries(self) -> Dict[int, List[TokenizedStringEntry]]: member in Database160 for token, entries in self.token_to_entries.items():
195 for entry in self.database.token_to_entries[token]