mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-27 23:26:49 +00:00

Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (rp2350) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / version (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32s3 (push) Blocked by required conditions
CI / build-esp32c3 (push) Blocked by required conditions
CI / build-esp32c6 (push) Blocked by required conditions
CI / build-nrf52840 (push) Blocked by required conditions
CI / build-rp2040 (push) Blocked by required conditions
CI / build-rp2350 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-deb-amd64 (push) Waiting to run
CI / docker-deb-amd64-tft (push) Waiting to run
CI / docker-alp-amd64 (push) Waiting to run
CI / docker-alp-amd64-tft (push) Waiting to run
CI / docker-deb-arm64 (push) Waiting to run
CI / docker-deb-armv7 (push) Waiting to run
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (rp2350) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (rp2350) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
CI / publish-firmware (push) Blocked by required conditions
* Add more text message test cases for meshpacket serializer * fix the trunk issue
60 lines
1.9 KiB
C++
60 lines
1.9 KiB
C++
#include "test_helpers.h"
|
|
#include <Arduino.h>
|
|
#include <unity.h>
|
|
|
|
// Forward declarations for test functions
|
|
void test_text_message_serialization();
|
|
void test_text_message_serialization_null();
|
|
void test_text_message_serialization_long_text();
|
|
void test_text_message_serialization_oversized();
|
|
void test_text_message_serialization_invalid_utf8();
|
|
void test_position_serialization();
|
|
void test_nodeinfo_serialization();
|
|
void test_waypoint_serialization();
|
|
void test_telemetry_device_metrics_serialization();
|
|
void test_telemetry_environment_metrics_serialization();
|
|
void test_telemetry_environment_metrics_comprehensive();
|
|
void test_telemetry_environment_metrics_missing_fields();
|
|
void test_telemetry_environment_metrics_complete_coverage();
|
|
void test_telemetry_environment_metrics_unset_fields();
|
|
void test_encrypted_packet_serialization();
|
|
|
|
void setup()
|
|
{
|
|
UNITY_BEGIN();
|
|
|
|
// Text message tests
|
|
RUN_TEST(test_text_message_serialization);
|
|
RUN_TEST(test_text_message_serialization_null);
|
|
RUN_TEST(test_text_message_serialization_long_text);
|
|
RUN_TEST(test_text_message_serialization_oversized);
|
|
RUN_TEST(test_text_message_serialization_invalid_utf8);
|
|
|
|
// Position tests
|
|
RUN_TEST(test_position_serialization);
|
|
|
|
// Nodeinfo tests
|
|
RUN_TEST(test_nodeinfo_serialization);
|
|
|
|
// Waypoint tests
|
|
RUN_TEST(test_waypoint_serialization);
|
|
|
|
// Telemetry tests
|
|
RUN_TEST(test_telemetry_device_metrics_serialization);
|
|
RUN_TEST(test_telemetry_environment_metrics_serialization);
|
|
RUN_TEST(test_telemetry_environment_metrics_comprehensive);
|
|
RUN_TEST(test_telemetry_environment_metrics_missing_fields);
|
|
RUN_TEST(test_telemetry_environment_metrics_complete_coverage);
|
|
RUN_TEST(test_telemetry_environment_metrics_unset_fields);
|
|
|
|
// Encrypted packet test
|
|
RUN_TEST(test_encrypted_packet_serialization);
|
|
|
|
UNITY_END();
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
delay(1000);
|
|
}
|