Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <cstdlib>
#include <cstdio>
#include <pthread.h>
#include <time.h>
#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
class | impala::TempRulesFile |
Namespaces | |
impala | |
This file contains type definitions that are used throughout the code base. | |
Macros | |
#define | IMPALA_REDACTOR_TEST_UTILS_H |
#define | SCOPED_ASSERT(assertion) |
#define | ASSERT_ERROR_MESSAGE_CONTAINS(error, expected) SCOPED_ASSERT(AssertErrorMessageContains(error, expected)) |
#define | ASSERT_REDACTED_EQ(actual, expected) SCOPED_ASSERT(AssertRedactedEquals(actual, expected)) |
#define | ASSERT_UNREDACTED(string) SCOPED_ASSERT(AssertUnredacted(string)) |
Functions | |
unsigned int | impala::RandSeed () |
void | impala::RandomlyFillString (char *string, const int length) |
Randomly fills the contents of 'string' up to the given length. More... | |
void | impala::AssertErrorMessageContains (const std::string &message, const char *expected) |
void | impala::AssertRedactedEquals (const char *message, const char *expected) |
void | impala::AssertUnredacted (const char *message) |
#define ASSERT_ERROR_MESSAGE_CONTAINS | ( | error, | |
expected | |||
) | SCOPED_ASSERT(AssertErrorMessageContains(error, expected)) |
Definition at line 132 of file redactor-test-utils.h.
Referenced by impala::TEST().
#define ASSERT_REDACTED_EQ | ( | actual, | |
expected | |||
) | SCOPED_ASSERT(AssertRedactedEquals(actual, expected)) |
Definition at line 135 of file redactor-test-utils.h.
Referenced by impala::TEST().
#define ASSERT_UNREDACTED | ( | string | ) | SCOPED_ASSERT(AssertUnredacted(string)) |
Definition at line 138 of file redactor-test-utils.h.
Referenced by impala::TEST().
#define IMPALA_REDACTOR_TEST_UTILS_H |
Definition at line 23 of file redactor-test-utils.h.
#define SCOPED_ASSERT | ( | assertion | ) |
Putting these assertion utilities above into functions messes up failure messages such that failures appear to be coming from this file instead of from the file that called the utility assertion. Using a "SCOPED_TRACE" adds the location of the caller to the error message.
Definition at line 126 of file redactor-test-utils.h.