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

Function TEST_F

be/src/runtime/io/data-cache-trace-test.cc:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105};
106
107TEST_F(DataCacheTraceTest, FromJSONFailures) {
108 TraceEvent event;
109 Status status;
110
111 // Empty JSON (missing required fields)
112 status = JsonToTraceEvent("{}", &event);
113 EXPECT_FALSE(status.ok());
114
115 // Invalid JSON
116 status = JsonToTraceEvent("{ x = 1234", &event);
117 EXPECT_FALSE(status.ok());
118
119 // Gibberish
120 status = JsonToTraceEvent("\\896437 a189047623fgdjkh", &event);
121 EXPECT_FALSE(status.ok());
122}
123
124TEST_F(DataCacheTraceTest, ToFromJSON) {
125 // Create an array of TraceEvents, go to JSON and back, verify the same

Callers

nothing calls this directly

Calls 10

JsonToTraceEventFunction · 0.85
TraceEventToJsonFunction · 0.85
SubstituteFunction · 0.85
ReplayDirectoryMethod · 0.80
GetReplayStatisticsMethod · 0.80
getMethod · 0.65
okMethod · 0.45
InitMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected