Added a line-break after each "if" to get more accurate coverage report

This commit is contained in:
Benoit Blanchon
2020-02-16 15:05:23 +01:00
parent 8f8c82d400
commit 0814fc185f
38 changed files with 429 additions and 214 deletions

View File

@@ -18,7 +18,8 @@ class StlStringAdapter {
char* save(MemoryPool* pool) const {
size_t n = _str->length() + 1;
char* dup = pool->allocFrozenString(n);
if (dup) memcpy(dup, _str->c_str(), n);
if (dup)
memcpy(dup, _str->c_str(), n);
return dup;
}
@@ -27,12 +28,14 @@ class StlStringAdapter {
}
int8_t compare(const char* other) const {
if (!other) return 1;
if (!other)
return 1;
return static_cast<int8_t>(_str->compare(other));
}
bool equals(const char* expected) const {
if (!expected) return false;
if (!expected)
return false;
return *_str == expected;
}