#include <gtest-internal-inl.h>
Definition at line 369 of file gtest-internal-inl.h.
◆ FilterMatchesTest()
bool testing::internal::UnitTestOptions::FilterMatchesTest |
( |
const std::string & | test_case_name, |
|
|
const std::string & | test_name ) |
|
static |
Definition at line 519 of file gtest.cc.
520 {
521 const std::string& full_name = test_case_name + "." + test_name.c_str();
522
523
524
526 const char*
const dash = strchr(
p,
'-');
527 std::string positive;
528 std::string negative;
529 if (dash == NULL) {
531 negative = "";
532 } else {
533 positive = std::string(
p, dash);
534 negative = std::string(dash + 1);
535 if (positive.empty()) {
536
537 positive = kUniversalFilter;
538 }
539 }
540
541
542
545}
static bool MatchesFilter(const std::string &name, const char *filter)
◆ GetAbsolutePathToOutputFile()
std::string testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile |
( |
| ) |
|
|
static |
Definition at line 438 of file gtest.cc.
438 {
439 const char*
const gtest_output_flag =
GTEST_FLAG(output).c_str();
440 if (gtest_output_flag == NULL)
441 return "";
442
445 format = std::string(kDefaultOutputFormat);
446
447 const char* const colon = strchr(gtest_output_flag, ':');
448 if (colon == NULL)
450 internal::FilePath(
452 internal::FilePath(kDefaultOutputFile), 0,
454
457
458
459
460
463 internal::FilePath(colon + 1));
464
467
471 return result.string();
472}
static UnitTest * GetInstance()
static FilePath GenerateUniqueFileName(const FilePath &directory, const FilePath &base_name, const char *extension)
const std::string & string() const
static FilePath MakeFileName(const FilePath &directory, const FilePath &base_name, int number, const char *extension)
static FilePath ConcatPaths(const FilePath &directory, const FilePath &relative_path)
static std::string GetOutputFormat()
void output_name(std::ostream &s, const string_view &str, bool shorten, size_t max_length=64)
GTEST_API_ FilePath GetCurrentExecutableName()
◆ GetOutputFormat()
std::string testing::internal::UnitTestOptions::GetOutputFormat |
( |
| ) |
|
|
static |
Definition at line 426 of file gtest.cc.
426 {
427 const char*
const gtest_output_flag =
GTEST_FLAG(output).c_str();
428 if (gtest_output_flag == NULL) return std::string("");
429
430 const char* const colon = strchr(gtest_output_flag, ':');
431 return (colon == NULL) ?
432 std::string(gtest_output_flag) :
433 std::string(gtest_output_flag, colon - gtest_output_flag);
434}
◆ MatchesFilter()
bool testing::internal::UnitTestOptions::MatchesFilter |
( |
const std::string & | name, |
|
|
const char * | filter ) |
|
static |
Definition at line 496 of file gtest.cc.
497 {
498 const char *cur_pattern = filter;
499 for (;;) {
501 return true;
502 }
503
504
505 cur_pattern = strchr(cur_pattern, ':');
506
507
508 if (cur_pattern == NULL) {
509 return false;
510 }
511
512
513 cur_pattern++;
514 }
515}
static bool PatternMatchesString(const char *pattern, const char *str)
◆ PatternMatchesString()
bool testing::internal::UnitTestOptions::PatternMatchesString |
( |
const char * | pattern, |
|
|
const char * | str ) |
|
static |
Definition at line 479 of file gtest.cc.
480 {
481 switch (*pattern) {
482 case '\0':
483 case ':':
485 case '?':
487 case '*':
490 default:
491 return *pattern == *
str &&
493 }
494}
The documentation for this class was generated from the following files:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest-internal-inl.h
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc