Wrap long lines to fit within 80 columns across the codebase
Pure whitespace/line-break reformatting (braces, newlines, and line continuations matching this codebase's existing wrap conventions) - no logic, string content, or identifiers changed anywhere. Confirmed via diff against the pre-change tree and by rebuilding + re-running the affected test suites, which produce identical pass/fail results. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
+26
-12
@@ -100,8 +100,12 @@ static void test_memoryCopy(void **state) {
|
||||
|
||||
// Overlapping regions (should assert)
|
||||
void *overlap = memoryAllocate(size * 2);
|
||||
expect_assert_failure(memoryCopy((uint8_t*)overlap, (uint8_t*)overlap + 8, size));
|
||||
expect_assert_failure(memoryCopy((uint8_t*)overlap + 8, (uint8_t*)overlap, size));
|
||||
expect_assert_failure(
|
||||
memoryCopy((uint8_t*)overlap, (uint8_t*)overlap + 8, size)
|
||||
);
|
||||
expect_assert_failure(
|
||||
memoryCopy((uint8_t*)overlap + 8, (uint8_t*)overlap, size)
|
||||
);
|
||||
memoryFree(overlap);
|
||||
|
||||
memoryFree(src);
|
||||
@@ -198,22 +202,32 @@ static void test_memoryCopyRangeSafe(void **state) {
|
||||
assert_memory_equal(dest, src, size);
|
||||
|
||||
// Cannot copy to NULL destination
|
||||
expect_assert_failure(memoryCopyRangeSafe(NULL, src, (uint8_t*)src + 5, size));
|
||||
|
||||
expect_assert_failure(
|
||||
memoryCopyRangeSafe(NULL, src, (uint8_t*)src + 5, size)
|
||||
);
|
||||
|
||||
// Cannot copy from NULL start
|
||||
expect_assert_failure(memoryCopyRangeSafe(dest, NULL, (uint8_t*)src + 5, size));
|
||||
|
||||
expect_assert_failure(
|
||||
memoryCopyRangeSafe(dest, NULL, (uint8_t*)src + 5, size)
|
||||
);
|
||||
|
||||
// Cannot copy from NULL end
|
||||
expect_assert_failure(memoryCopyRangeSafe(dest, (uint8_t*)src, NULL, size));
|
||||
|
||||
|
||||
// Start and end are the same
|
||||
expect_assert_failure(memoryCopyRangeSafe(dest, (uint8_t*)src, (uint8_t*)src, size));
|
||||
|
||||
expect_assert_failure(
|
||||
memoryCopyRangeSafe(dest, (uint8_t*)src, (uint8_t*)src, size)
|
||||
);
|
||||
|
||||
// End is before start
|
||||
expect_assert_failure(memoryCopyRangeSafe(dest, (uint8_t*)src + 5, (uint8_t*)src + 2, size));
|
||||
|
||||
expect_assert_failure(
|
||||
memoryCopyRangeSafe(dest, (uint8_t*)src + 5, (uint8_t*)src + 2, size)
|
||||
);
|
||||
|
||||
// Size to copy exceeds maximum
|
||||
expect_assert_failure(memoryCopyRangeSafe(dest, (uint8_t*)src, (uint8_t*)src + 10, 5));
|
||||
expect_assert_failure(
|
||||
memoryCopyRangeSafe(dest, (uint8_t*)src, (uint8_t*)src + 10, 5)
|
||||
);
|
||||
|
||||
memoryFree(src);
|
||||
memoryFree(dest);
|
||||
|
||||
Reference in New Issue
Block a user