----------------------------------------
-----------Sun Devil Rocketry-----------
-----------Unit Test Results------------
----------------------------------------

----------------------------------------
------------Test Environment------------
----------------------------------------

--General Build Information--
Test Name:        prelaunch.c
Test Type:        Unit Test
Build Date:       Oct 10 2026
Build Time:       23:25:50
Run Date:         Oct 10 2026
Run Time:         23:25:50
ISO C?:           1
C Standard:       201710

--GNU C Compiler (GCC) Info--
GCC Version:      13.3.0

--GCOVR Info--
GCOVR Version:    8.6

----------------------------------------
----------------Results-----------------
----------------------------------------


--BEGIN TEST GROUP: Check test environment--

Test Environment: Release build
Actual: TRUE | Expected: TRUE

Test Environment: ISO C standard is C17 or greater
Actual: 201710 | Expected: 201700

Test Environment: Compiler at/above minimum GCC version
Actual: 13 | Expected: 8

Test Environment: Compiler at/below maximum GCC version
Actual: 13 | Expected: 15

Test Environment: Coverage tool at/above minimum GCOVR version
Actual: 8 | Expected: 7

Test Environment: Coverage tool at/below maximum GCOVR version
Actual: 8 | Expected: 8

--TEST GROUP RESULTS:--
Group Passes: 6
Group Fails:  0
--END TEST GROUP: Check test environment--


--BEGIN TEST GROUP: check config validity--

Caught invalid config
Actual: FALSE | Expected: FALSE

valid config
Actual: TRUE | Expected: TRUE

--TEST GROUP RESULTS:--
Group Passes: 2
Group Fails:  0
--END TEST GROUP: check config validity--


--BEGIN TEST GROUP: preset cmd execute--

Working Upload Preset with not matching checksum
Actual: 0 | Expected: 0

Working Upload Preset with matching checksum
Actual: 0 | Expected: 0

Working Download Preset
Actual: 0 | Expected: 0

Failing Download Preset
Actual: 1 | Expected: 1

Working Verify Preset
Actual: 0 | Expected: 0

Working Verify Preset
Actual: 0 | Expected: 0

Unrecognized command code
Actual: 1 | Expected: 1

--TEST GROUP RESULTS:--
Group Passes: 7
Group Fails:  0
--END TEST GROUP: preset cmd execute--


--BEGIN TEST GROUP: prelaunch terminal--

Detecting no USB and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending connect op, and do not enter flight mode
Actual: 0 | Expected: 0

Ping command called
Actual: 1 | Expected: 1

Detecting USB, sending connect op, and do not enter flight mode
Actual: 0 | Expected: 0

Ping command called
Actual: 1 | Expected: 1

Detecting USB, sending sensor op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending sensor op, usb failing, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending fin op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending fin op, failing usb, failing flash, and do not enter flight mode
Actual: 1 | Expected: 1

Dashboard Dump -- Nominal
Actual: 0 | Expected: 0

Dashboard Dump: was fail?
Actual: 0 | Expected: 0

Dashboard Dump -- Fail
Actual: 1 | Expected: 1

Dashboard Dump: was fail?
Actual: 1 | Expected: 1

Detecting USB, sending ignite op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending flash op, failing usb, and do not enter flight mode
Actual: TRUE | Expected: TRUE

LoRa: Preset upload (success)
Actual: 0 | Expected: 0

LoRa: Preset upload (preset write fail)
Actual: TRUE | Expected: TRUE

LoRa: Preset upload (reconfiguration fail)
Actual: TRUE | Expected: TRUE

LoRa: Invalid Subcomm
Actual: TRUE | Expected: TRUE

Detecting USB, sending flash op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending flash op, failing usb, and do not enter flight mode
Actual: TRUE | Expected: TRUE

Detecting USB, sending flash op, failing usb, failing usb transmit, and do not enter flight mode
Actual: 1 | Expected: 1

Detecting USB, sending preset op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending preset op, failing usb, and do not enter flight mode
Actual: TRUE | Expected: TRUE

Detecting USB, sending preset op, failing usb, failing usb transmit, and do not enter flight mode
Actual: 1 | Expected: 1

Detecting USB, sending servo op, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, sending servo op, failing usb, and do not enter flight mode
Actual: 1 | Expected: 1

Detecting USB, sending servo op, passing servo status, and do not enter flight mode
Actual: 0 | Expected: 0

Detecting USB, failing usb, and do not enter flight mode
Actual: 1 | Expected: 1

Detecting USB, sending unknown op, and do not enter flight mode
Actual: 0 | Expected: 0

Do not detect USB, enter flight mode, pass config check, do not dual deploy
Actual: 0 | Expected: 0

Do not detect USB, enter flight mode, fail config check, do dual deploy
Actual: 0 | Expected: 0

Do not detect USB, enter flight mode, fail config check, do dual deploy with drogue fail
Actual: 0 | Expected: 0

Do not detect USB, enter flight mode, fail config check, do dual deploy with main fail
Actual: 0 | Expected: 0

Do not detect USB, enter flight mode, fail config check, do dual deploy with drogue and main fail
Actual: 0 | Expected: 0

--TEST GROUP RESULTS:--
Group Passes: 35
Group Fails:  0
--END TEST GROUP: prelaunch terminal--

----------------------------------------
-------------Test Complete--------------
----------------------------------------
Passes: 50
Fails:  0
Result: PASS
----------------------------------------
