Northeastern-Electric-Racing / Shepherd-BMS

Our from-scratch Battery Management Application
4 stars 0 forks source link

[EEPROM] - Unit test verification #73

Closed dyldonahue closed 2 months ago

dyldonahue commented 9 months ago

Description

we completely overhauled our eeprom driver & interface, and i think its best to verify this with a unit test. Not only should this verify eeprom itself, but I also want to ensure the logic behing writing faults works.

Acceptance Criteria

Utilize the eeprom driver and shepherd's eeprom interface to create a task that proves both of those components work. Feel free to talk to me about what we are trying to do with writing faults, it may not be super easy to see in the code itself. Isolating this in a sort of task so that we can run it on BMS without changing much code would be ideal

Proposed Solution

simple read write any data, simple write read fault data unit test. Package all into a single function call, and a very distinct behavior if the stuff suceeds