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

Method _format_detail

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

Source from the content-addressed store, hash-verified

2117 self.val = val
2118
2119 def _format_detail(self, state):
2120 detail_ptr = SharedPtr(state['detail']).get()
2121 if int(detail_ptr) == 0:
2122 return None
2123 detail_id = CString(gdb.parse_and_eval(
2124 f"{for_evaluation(detail_ptr)}->type_id()"))
2125 # Cannot use StdString as ToString() returns a rvalue
2126 detail_msg = CString(gdb.parse_and_eval(
2127 f"{for_evaluation(detail_ptr)}->ToString().c_str()"))
2128 return f"[{detail_id.string()}] {detail_msg.string_literal()}"
2129
2130 def _format_error(self, state):
2131 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