MCPcopy Create free account
hub / github.com/argotorg/solidity / _cell_content

Method _cell_content

scripts/externalTests/benchmark_diff.py:252–264  ·  view source on GitHub ↗
(cls, diff: dict, project: str, preset: str, attribute: str)

Source from the content-addressed store, hash-verified

250
251 @classmethod
252 def _cell_content(cls, diff: dict, project: str, preset: str, attribute: str) -> str:
253 assert project in diff
254
255 if isinstance(diff[project], str):
256 return diff[project]
257 if preset not in diff[project]:
258 return ''
259 if isinstance(diff[project][preset], str):
260 return diff[project][preset]
261 if attribute not in diff[project][preset]:
262 return ''
263
264 return diff[project][preset][attribute]
265
266
267class DiffTableFormatter:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected