@@ -217,6 +217,32 @@ void test_eNDGetCacheEntry_Multicast_InvalidEndPoint( void )
217217 TEST_ASSERT_EQUAL ( eARPCacheMiss , eResult );
218218}
219219
220+ /**
221+ * @brief This function find the MAC-address of a multicast IPv6 address
222+ * with a NULL endpoint, but no active IPv6 endpoints.
223+ */
224+ void test_eNDGetCacheEntry_Multicast_InvalidEndPoint_NoEP ( void )
225+ {
226+ NetworkEndPoint_t * * ppxEndPoint = NULL ;
227+ eARPLookupResult_t eResult ;
228+ MACAddress_t xMACAddress ;
229+ IPv6_Address_t xIPAddress ;
230+ NetworkEndPoint_t xEndPoint , * pxEndPoint = & xEndPoint , xEndPoint1 ;
231+
232+ ( void ) memcpy ( xIPAddress .ucBytes , xMultiCastIPAddress .ucBytes , ipSIZE_OF_IPv6_ADDRESS );
233+
234+ xIsIPv6AllowedMulticast_ExpectAnyArgsAndReturn ( pdTRUE );
235+ vSetMultiCastIPv6MacAddress_ExpectAnyArgs ();
236+
237+ xIPv6_GetIPType_ExpectAnyArgsAndReturn ( eIPv6_Multicast );
238+ FreeRTOS_FindEndPointOnIP_IPv6_ExpectAnyArgsAndReturn ( NULL );
239+ FreeRTOS_FindGateWay_ExpectAnyArgsAndReturn ( & xEndPoint1 );
240+
241+ eResult = eNDGetCacheEntry ( & xIPAddress , & xMACAddress , ppxEndPoint );
242+
243+ TEST_ASSERT_EQUAL ( eARPCacheMiss , eResult );
244+ }
245+
220246/**
221247 * @brief This function find the MAC-address of an IPv6 address which is
222248 * not multi cast address, but the entry is present on the ND Cache,
0 commit comments