SolidSyslog coverage report
Current view: top level - Platform/LwipRaw/Source - SolidSyslogLwipRawMarshal.c (source / functions) Coverage Total Hit
Test: SolidSyslog Lines: 100.0 % 11 11
Test Date: 2026-11-12 23:14:35 Functions: 100.0 % 3 3
Branches: 100.0 % 2 2

             Branch data     Line data    Source code
       1                 :             : /* SPDX-FileCopyrightText: Copyright 2026 Cozens Software Solutions Limited
       2                 :             :  * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0 OR LicenseRef-COSOSO-Commercial
       3                 :             :  */
       4                 :             : 
       5                 :             : #include "SolidSyslogLwipRawMarshalPrivate.h"
       6                 :             : 
       7                 :             : #include <stddef.h>
       8                 :             : 
       9                 :           2 : static void Marshal_NullMarshal(SolidSyslogLwipRawCallback callback, void* context)
      10                 :             : {
      11                 :           2 :     callback(context);
      12                 :           2 : }
      13                 :             : 
      14                 :             : static SolidSyslogLwipRawMarshalFunction currentMarshal = Marshal_NullMarshal;
      15                 :             : 
      16                 :         274 : void SolidSyslogLwipRaw_SetMarshal(SolidSyslogLwipRawMarshalFunction marshal)
      17                 :             : {
      18         [ +  + ]:         274 :     if (marshal == NULL)
      19                 :             :     {
      20                 :         138 :         currentMarshal = Marshal_NullMarshal;
      21                 :             :     }
      22                 :             :     else
      23                 :             :     {
      24                 :         136 :         currentMarshal = marshal;
      25                 :             :     }
      26                 :         274 : }
      27                 :             : 
      28                 :         240 : void SolidSyslogLwipRaw_Marshal(SolidSyslogLwipRawCallback callback, void* context)
      29                 :             : {
      30                 :         240 :     currentMarshal(callback, context);
      31                 :         240 : }
        

Generated by: LCOV version 2.0-1