Home
last modified time | relevance | path

Searched refs:date_removed (Results 1 – 7 of 7) sorted by relevance

/external/pigweed/pw_tokenizer/py/
Dtokens_test.py148 self.assertEqual(jello.date_removed, datetime.datetime(2019, 6, 11))
155 self.assertIsNone(llu.date_removed)
204 1, 'one', date_removed=datetime.datetime.min),
206 2, 'two', date_removed=datetime.datetime.min),
209 self.assertEqual(db.token_to_entries[1][0].date_removed,
211 self.assertEqual(db.token_to_entries[2][0].date_removed,
219 4, 'four', date_removed=datetime.datetime.min),
224 self.assertIsNone(db.token_to_entries[3][0].date_removed)
225 self.assertEqual(db.token_to_entries[4][0].date_removed,
235 self.assertEqual(db.token_to_entries[4][0].date_removed,
[all …]
Ddetokenize_test.py108 date_removed=dt.datetime.now())
118 date_removed=dt.datetime(1, 1, 1))
135 date_removed=dt.datetime(1, 1, 1))
150 date_removed=dt.datetime(1, 1, 1))
167 date_removed=dt.datetime(
318 token, 'REMOVED', date_removed=dt.datetime(9, 1, 1)),
321 token, 'A: %d', date_removed=dt.datetime(30, 5, 9)),
323 token, 'B: %c', date_removed=dt.datetime(30, 5, 10)),
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py81 date_removed: Optional[datetime] = None variable in TokenizedStringEntry
91 if self.date_removed is None:
94 if new_date_removed is None or new_date_removed > self.date_removed:
95 self.date_removed = new_date_removed
104 if self.date_removed != other.date_removed:
105 return (other.date_removed or datetime.max) < (self.date_removed
195 and (entry.date_removed is None
196 or removal_date < entry.date_removed)):
198 entry.date_removed = removal_date
212 entry.date_removed = None
[all …]
Ddatabase.py218 present = [entry for entry in db.entries() if not entry.date_removed]
302 if not entry.date_removed), date)
Ddetokenize.py98 entry.date_removed or datetime.max) # most recently present
/external/pigweed/pw_tokenizer/
Ddetokenize.cc77 for (const auto& [format, date_removed] : entries) { in DetokenizedString()
78 results.push_back(DecodingResult{format.Format(arguments), date_removed}); in DetokenizedString()
102 database_[entry.token].emplace_back(entry.string, entry.date_removed); in Detokenizer()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/
Dtoken_database.h61 uint32_t date_removed; member
76 uint32_t date_removed; member
91 return {raw_->token, raw_->date_removed, string_}; in entry()