MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/kudu/util/trace-test.cc:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82TEST_F(TraceTest, TestBasic) {
83 scoped_refptr<Trace> t(new Trace);
84 TRACE_TO(t, "hello $0, $1", "world", 12345);
85 TRACE_TO(t, "goodbye $0, $1", "cruel world", 54321);
86
87 string result = XOutDigits(t->DumpToString(Trace::NO_FLAGS));
88 ASSERT_EQ("XXXX XX:XX:XX.XXXXXX trace-test.cc:XX] hello world, XXXXX\n"
89 "XXXX XX:XX:XX.XXXXXX trace-test.cc:XX] goodbye cruel world, XXXXX\n",
90 result);
91}
92
93TEST_F(TraceTest, TestAttach) {
94 scoped_refptr<Trace> traceA(new Trace);

Callers

nothing calls this directly

Calls 15

XOutDigitsFunction · 0.85
AllowSlowTestsFunction · 0.85
CategoryFilterClass · 0.85
GenerateTraceEventsFunction · 0.85
ParseAndReturnEventCountFunction · 0.85
GenerateTracesUntilLatchFunction · 0.85
SleepForFunction · 0.85
TestFunctionFunction · 0.85
FunctionWithSideEffectFunction · 0.85
DumpToStringMethod · 0.80
AddChildTraceMethod · 0.80

Tested by

no test coverage detected