Moved code that is only used in unit test into the unit test portion of the module.
This commit is contained in:
@@ -137,6 +137,11 @@ int whohas_decode_service_request(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
int whohas_decode_apdu(uint8_t * apdu,
|
||||
unsigned apdu_len, BACNET_WHO_HAS_DATA * data)
|
||||
{
|
||||
@@ -157,11 +162,6 @@ int whohas_decode_apdu(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
void testWhoHasData(Test * pTest, BACNET_WHO_HAS_DATA * data)
|
||||
{
|
||||
uint8_t apdu[480] = { 0 };
|
||||
|
||||
Reference in New Issue
Block a user