Commit Graph

8 Commits (695e87220255eb122ad9a68ebfdc3a12ece28fb1)

Author SHA1 Message Date
Qinghao Shi 115f1cc9c8 TEST: fix a bug in ATCmdParser test 2020-02-07 00:44:00 +00:00
David Lin b49dac2de0
optimize the code of array set to zero
1. replace  'char buf[8];    memset(buf, 0, 8);' with 'char buf[8] = {0};'.
2020-01-21 20:23:55 +08:00
Maciej Bocianski 455b846bc1 unittest: fix ATCmdParser test segfault 2020-01-14 13:15:50 +01:00
Seppo Takalo c54d76eddf Allow MBED_ASSERT to throw errors in unittests, so we can verify it.
GoogleTest allows you to check whether certain function throws errors.
For example:
ASSERT_ANY_THROW(mbed::HeapBlockDevice one(3050, 100));
or
ASSERT_NO_THROW(bd.init());

As MBED_ERROR is now only function that can throw errors, there is
no need to check the type of thrown object.
2019-11-22 13:10:46 +02:00
Marcin Tomczyk 1d3a1b7c6c ATCmdParser: unittests implementation 2019-11-20 22:37:01 -08:00
Lari-Matias Orjala 3e7ee6c4d1 add auto-naming of unit test suites 2018-09-19 11:10:40 +03:00
Brian Daniels 0bda46df07 Moving all unit tests to use hyphenated test name 2018-09-10 13:42:51 -05:00
Lari-Matias Orjala 4dde13db6d Add unit testing framework 2018-08-27 14:32:35 +03:00