commit | c0225ca71894222e6b1f0e1e26d79fe1bf4d3294 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Aug 02 19:33:24 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 02 19:33:24 2022 +0000 |
tree | 5695fa33af5355e7735a556e007bbe511440fd2f | |
parent | 091917e840cb5d73bf8503ee1be736709e44d3db [diff] |
pw_tokenizer: Keep the newest removal date for duplicate tokens - If entries are added to a database that already contains them, update to the newest date removed. - Have the Database __init__ call self.add(entries) so semantics are consistent. - Restore the DirectoryDatabase test that was deleted because the semantics for dates removed with duplicate tokens had not been defined. Change-Id: Id2d6bb60537a51521c2e9ed26c838a009c73294a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/104681 Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.