Skip to content

Add Unit Tests to Ensure Robustness of Looking for Non-Existent Keys #97

@Hedgemon4

Description

@Hedgemon4

Description

  • While working on Add Native Configuration to PlatformIO #94, an issue was encountered where EmbedDB had a segmentation fault because it tried to search for a key that was less than the recorded min key in the database.
  • We should investigate the robustness of the code by writing some more unit tests to ensure that the database does not crash when some key edge cases are encountered, such as:
    • Querying for a key less than the min key
    • Querying for a key greater than the max key
    • Looking for a key between keys in the database that does not exist
    • Querying records at a later point in the database when some earlier pages have been flushed

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions