CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
test_gnss_time.c File Reference
#include "gnss_receiver/gnss_internal_drivers.h"
#include "gnss_receiver/gnss_time.h"
#include "timekeeping/timekeeping.h"
#include "log/log.h"
#include "unit_tests/unit_test_helpers.h"
#include <stdio.h>
#include <time.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for test_gnss_time.c:

Functions

uint8_t TEST_EXEC__GNSS_timea_valid_case_1 ()
 Test: Valid TIMEA message, case 1.
 
uint8_t TEST_EXEC__GNSS_timea_valid_case_2 ()
 Test: Valid TIMEA message, case 2.
 
uint8_t TEST_EXEC__GNSS_timea_invalid_utc_status ()
 Test: Invalid UTC status at end of TIMEA message.
 
uint8_t TEST_EXEC__GNSS_timea_invalid_status_early ()
 Test: Invalid UTC status early in TIMEA message (should still parse as valid)
 
uint8_t TEST_EXEC__GNSS_timea_malformed ()
 Test: Malformed TIMEA message.
 

Variables

const uint8_t error_response = 1
 Expected error code for invalid messages.
 

Function Documentation

◆ TEST_EXEC__GNSS_timea_invalid_status_early()

uint8_t TEST_EXEC__GNSS_timea_invalid_status_early ( )

Test: Invalid UTC status early in TIMEA message (should still parse as valid)

Here is the call graph for this function:

◆ TEST_EXEC__GNSS_timea_invalid_utc_status()

uint8_t TEST_EXEC__GNSS_timea_invalid_utc_status ( )

Test: Invalid UTC status at end of TIMEA message.

Here is the call graph for this function:

◆ TEST_EXEC__GNSS_timea_malformed()

uint8_t TEST_EXEC__GNSS_timea_malformed ( )

Test: Malformed TIMEA message.

Here is the call graph for this function:

◆ TEST_EXEC__GNSS_timea_valid_case_1()

uint8_t TEST_EXEC__GNSS_timea_valid_case_1 ( )

Test: Valid TIMEA message, case 1.

Here is the call graph for this function:

◆ TEST_EXEC__GNSS_timea_valid_case_2()

uint8_t TEST_EXEC__GNSS_timea_valid_case_2 ( )

Test: Valid TIMEA message, case 2.

Here is the call graph for this function:

Variable Documentation

◆ error_response

const uint8_t error_response = 1

Expected error code for invalid messages.