LONGBOW_TEST_CASE(Global, ccnxStackConfig_IsValid) { CCNxStackConfig *instance = ccnxStackConfig_Create(); assertTrue(ccnxStackConfig_IsValid(instance), "Expected ccnxStackConfig_Create to result in a valid instance."); ccnxStackConfig_Release(&instance); assertFalse(ccnxStackConfig_IsValid(instance), "Expected ccnxStackConfig_Create to result in an invalid instance."); }
const char * rtaCommandCreateProtocolStack_AssessValidity(const RtaCommandCreateProtocolStack *instance) { char *result = NULL; if (instance != NULL) { if (ccnxStackConfig_IsValid(instance->config)) { result = NULL; } else { result = "CCNxStackConfig instance is invalid"; } } else { result = "Instance cannot be NULL"; } return result; }