Alien-cares
view release on metacpan or search on metacpan
libcares/test/gmock-1.8.0/gmock-gtest-all.cc view on Meta::CPAN
424542464247424842494250425142524253425442554256425742584259426042614262426342644265// Restores the test order to
before
the first shuffle.
void TestCase::UnshuffleTests() {
for
(size_t i = 0; i < test_indices_.size(); i++) {
test_indices_[i] = static_cast<
int
>(i);
}
}
// Formats a countable noun. Depending on its quantity, either the
// singular form or the plural form is used. e.g.
//
// FormatCountableNoun(1,
"formula"
,
"formuli"
) returns
"1 formula"
.
// FormatCountableNoun(5,
"book"
,
"books"
) returns
"5 books"
.
static std::string FormatCountableNoun(
int
count,
const char * singular_form,
const char * plural_form) {
return
internal::StreamableToString(count) +
" "
+
(count == 1 ? singular_form : plural_form);
}
// Formats the count of tests.
static std::string FormatTestCount(
int
test_count) {
( run in 0.311 second using v1.01-cache-2.11-cpan-0d8aa00de5b )