MCPcopy Create free account
hub / github.com/apache/arrow / _format_detail

Method _format_detail

cpp/gdb_arrow.py:2136–2145  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

2134 self.val = val
2135
2136 def _format_detail(self, state):
2137 detail_ptr = SharedPtr(state['detail']).get()
2138 if int(detail_ptr) == 0:
2139 return None
2140 detail_id = CString(gdb.parse_and_eval(
2141 f"{for_evaluation(detail_ptr)}->type_id()"))
2142 # Cannot use StdString as ToString() returns a rvalue
2143 detail_msg = CString(gdb.parse_and_eval(
2144 f"{for_evaluation(detail_ptr)}->ToString().c_str()"))
2145 return f"[{detail_id.string()}] {detail_msg.string_literal()}"
2146
2147 def _format_error(self, state):
2148 code = int(state['code'])

Callers 1

_format_errorMethod · 0.95

Calls 6

stringMethod · 0.95
string_literalMethod · 0.95
SharedPtrClass · 0.85
CStringClass · 0.85
for_evaluationFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected