MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / passed

Function passed

python/cli/diagnose/html.py:118–130  ·  view source on GitHub ↗
(v, large=True)

Source from the content-addressed store, hash-verified

116 return s
117
118def passed(v, large=True):
119 if v:
120 classes = 'passed'
121 text = 'Passed'
122 else:
123 classes = 'error'
124 text = 'FAILED'
125 if large:
126 classes +=" large-text"
127 tag = 'p'
128 else:
129 tag = 'span'
130 return '<%s class="%s">%s</%s>' % (tag, classes, text, tag)
131
132def status(sensor):
133 diagnosis = sensor["diagnosis"]

Callers 1

generateHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected