1.current_check_fun 已经达到100%
2.judge_hard_ver while(hardVerFun.flag == 0);
当hardVerFun.flag == 0时死循环,无法达到100%
3.driver_com.c bms_pack_send
else if(SSM_MAIN_STEP_FIRST_SETTING == mainSsmFsm.step) 分支不可达
4.driver_com.c com_pck_receive
if(rxComBuf.index >= 12) 小于12不可达
if(_data == BURNER_SHAKE_TAIL)不可达
(((crc>>8)&0XFF) == rxComBuf.data[10])&&(((crc)&0XFF) == rxComBuf.data[9])分支不可达
if(rxComBuf.index >= rxComBuf.crcPos+1) 大于rxComBuf.crcPos+1 分支不可达
crc == rxComBuf.data[rxComBuf.crcPos] 不等于rxComBuf.data[rxComBuf.crcPos] 分支不可达
rxComBuf.data[rxComBuf.crcPos-1] == 0x08 分支不可达
5.driver_display.c
display_pck_send 函数本身覆盖度已经达到100%,内部牵连到的函数太多,其他函数没达到100%影响了整体的覆盖度。
6.smm_fsm_fun.c
ssm_fsm_main_step 圈复杂度太高,mainSsmFsm.preStep