MCPcopy
hub / github.com/danvk/dygraphs / t

Function t

scripts/smap-out.py:14–25  ·  view source on GitHub ↗
(s, css=False)

Source from the content-addressed store, hash-verified

12if len(sys.argv) == 2 and sys.argv[1] == '--test':
13 rv = 0
14 def t(s, css=False):
15 global rv
16 m = _smap.match(s)
17 if m is None:
18 print('no match', s)
19 rv = 1
20 return
21 hascss = m.group('iscss') is not None
22 if hascss != css:
23 print('bogus css', hascss, s)
24 rv = 1
25 print('got b64', m.group('b64'))
26 def f(s):
27 global rv
28 if _smap.match(s) is not None:

Callers 1

smap-out.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected