move to charger.cpp complete, stubs & TODOs for missing tests

This commit is contained in:
Janosch
2022-10-14 13:24:43 +01:00
parent 100821e68c
commit 3ba4f26b43
8 changed files with 178 additions and 165 deletions
BIN
View File
Binary file not shown.
+2
View File
@@ -3,4 +3,6 @@
#include "timer_mock.h"
#include "digio_mock.h"
#include "charger.h"
uint32_t startTime;
PiController dcCurController;
#endif
+4 -1
View File
@@ -3,7 +3,6 @@
#endif
#include <assert.h>
#include "test_common.h"
uint32_t startTime;
void test_calc_totals()
{
@@ -238,3 +237,7 @@ void test_calc_enable(){
//}
//assert(3 == canenable);
}
// TODO: test_charger_state_machine(){}
// TODO: test_calc_ac_current_limit(){}
// TODO: test_check_charger_faults(){}