@@ -216,6 +216,34 @@ void test_eNDGetCacheEntry_Multicast_InvalidEndPoint( void )
216216 TEST_ASSERT_EQUAL ( eResolutionCacheMiss , eResult );
217217}
218218
219+
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+ eResolutionLookupResult_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 ( eResolutionCacheMiss , eResult );
244+ }
245+
246+
219247/**
220248 * @brief This function find the MAC-address of an IPv6 address which is
221249 * not multi cast address, but the entry is present on the ND Cache,
0 commit comments