File gtest_isotp_receive.cpp

FileList > tests > unit > gtest_isotp_receive.cpp

Go to the source code of this file

Unit tests for isotp_receive. More...

  • #include <gtest/gtest.h>
  • #include "isotp_test_support.h"

Public Functions

Type Name
TEST (IsotpReceive, NoDataReturnsNoData)
No data returns ISOTP_RET_NO_DATA.
TEST (IsotpReceive, CopiesPayloadAndResetsState)
Full payload copy resets receive state.
TEST (IsotpReceive, CopiesPartialPayloadWhenBufferTooSmall)
Small output buffer triggers partial copy.

Detailed Description

Covers empty receive, full copy, and truncation paths.

Public Functions Documentation

function TEST

No data returns ISOTP_RET_NO_DATA.

TEST (
    IsotpReceive,
    NoDataReturnsNoData
) 


function TEST

Full payload copy resets receive state.

TEST (
    IsotpReceive,
    CopiesPayloadAndResetsState
) 


function TEST

Small output buffer triggers partial copy.

TEST (
    IsotpReceive,
    CopiesPartialPayloadWhenBufferTooSmall
) 



The documentation for this class was generated from the following file tests/unit/gtest_isotp_receive.cpp