Skip to content

Commit

Permalink
tests/unittests: Renamed tests-cncbor to tests-cn_cbor for conformity.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenz9314 committed Mar 7, 2018
1 parent c483d85 commit 6b0bc90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
File renamed without changes.
Expand Up @@ -42,15 +42,15 @@ static size_t test, offs;
static unsigned char ebuf[EBUF_SIZE];
static cn_cbor_errback errb;

static void setup_cncbor(void)
static void setup_cn_cbor(void)
{
cbor = NULL;
test = 0;
offs = 0;
memset(ebuf, '\0', EBUF_SIZE);
}

static void teardown_cncbor(void)
static void teardown_cn_cbor(void)
{
free(pbuf.pntr);
cn_cbor_free(cbor);
Expand Down Expand Up @@ -173,18 +173,18 @@ static void test_errors(void)
}
}

TestRef test_cncbor(void)
TestRef test_cn_cbor(void)
{
EMB_UNIT_TESTFIXTURES(fixtures) {
new_TestFixture(test_parse),
new_TestFixture(test_errors)
};

EMB_UNIT_TESTCALLER(tests_cncbor, setup_cncbor, teardown_cncbor, fixtures);
return (TestRef) & tests_cncbor;
EMB_UNIT_TESTCALLER(tests_cn_cbor, setup_cn_cbor, teardown_cn_cbor, fixtures);
return (TestRef) & tests_cn_cbor;
}

void tests_cncbor(void)
void tests_cn_cbor(void)
{
TESTS_RUN(test_cncbor());
TESTS_RUN(test_cn_cbor());
}

0 comments on commit 6b0bc90

Please sign in to comment.