MCPcopy Create free account
hub / github.com/cpputest/cpputest / reverse

Method reverse

src/CppUTest/Utest.cpp:817–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817void UtestShellPointerArray::reverse()
818{
819 if (count_ == 0) return;
820
821 size_t halfCount = count_ / 2;
822 for (size_t i = 0; i < halfCount; i++)
823 {
824 size_t j = count_ - i - 1;
825 swap(i, j);
826 }
827 relinkTestsInOrder();
828}
829
830void UtestShellPointerArray::relinkTestsInOrder()
831{

Callers 2

reverseTestsMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected