Coverage for src/lcdoc/call_flows/viz_sequence.py: 77.36%
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from functools import partial lp|features/lp/python/call_flow_logging/index.mdpytest
3# fmt:off
4code = lambda typ, body: ''' 4 ↛ exitline 4 didn't run the lambda on line 4lp|features/lp/python/call_flow_logging/index.mdpytest
6```%s
7%s
8```
10''' % (typ, body)
12call_seq_diag = '''
15[![](.%(f)s.svg)](%(l)scall_sequence.html?src=%(f)s)
18'''
19# fmt:on
22class Viz: lp|features/lp/python/call_flow_logging/index.mdpytest
23 activate = lambda abbr: 'activate %s' % abbr 23 ↛ exitline 23 didn't run the lambda on line 23lp|features/lp/python/call_flow_logging/index.mdpytest
24 deactivate = lambda abbr: 'deactivate %s' % abbr 24 ↛ exitline 24 didn't run the lambda on line 24lp|features/lp/python/call_flow_logging/index.mdpytest
25 req = lambda frm, to, f=lambda x: x, what='': '%s ->> %s: %s' % (frm, to, f(what)) 25 ↛ exitline 25 didn't run the lambda on line 25 or line 25 didn't run the lambda on line 25lp|features/lp/python/call_flow_logging/index.mdpytest
26 rsp = lambda frm, to, f=lambda x: x, what='': '%s -->> %s: %s' % (frm, to, f(what)) 26 ↛ exitline 26 didn't run the lambda on line 26 or line 26 didn't run the lambda on line 26lp|features/lp/python/call_flow_logging/index.mdpytest
27 note_over = lambda n, what: 'note over %s: %s' % (n, what) 27 ↛ exitline 27 didn't run the lambda on line 27lp|features/lp/python/call_flow_logging/index.mdpytest
30class Plant(Viz): lp|features/lp/python/call_flow_logging/index.mdpytest
31 participant = lambda abbr, title: 'participant "%s" as %s' % (title, abbr) 31 ↛ exitline 31 didn't run the lambda on line 31lp|features/lp/python/call_flow_logging/index.mdpytest
32 ext = 'plantuml' lp|features/lp/python/call_flow_logging/index.mdpytest
33 wrap = lambda r: '@startuml\n%s\n@enduml' % '\n'.join(r) 33 ↛ exitline 33 didn't run the lambda on line 33lp|features/lp/python/call_flow_logging/index.mdpytest
34 # include = lambda fn: '\n![call sequence](.%s.svg)\n' % fn.rsplit('.', 1)[0]
35 include = lambda fn, loc: call_seq_diag % {'f': fn.rsplit('.', 1)[0], 'l': loc} 35 ↛ exitline 35 didn't run the lambda on line 35lp|features/lp/python/call_flow_logging/index.mdpytest
36 ls = '\\n' lp|features/lp/python/call_flow_logging/index.mdpytest
39class Mermaid(Viz): lp|features/lp/python/call_flow_logging/index.mdpytest
40 participant = lambda abbr, title: 'participant %s as %s' % (abbr, title) 40 ↛ exitline 40 didn't run the lambda on line 40lp|features/lp/python/call_flow_logging/index.mdpytest
41 what = lambda w='': '""' if not w else '%s' % w 41 ↛ exitline 41 didn't run the lambda on line 41lp|features/lp/python/call_flow_logging/index.mdpytest
42 req = partial(Viz.req, f=what) lp|features/lp/python/call_flow_logging/index.mdpytest
43 rsp = partial(Viz.rsp, f=what) lp|features/lp/python/call_flow_logging/index.mdpytest
44 ext = 'mermaid' lp|features/lp/python/call_flow_logging/index.mdpytest
45 wrap = lambda r: code('mermaid', 'sequenceDiagram\n%s' % '\n'.join(r)) 45 ↛ exitline 45 didn't run the lambda on line 45lp|features/lp/python/call_flow_logging/index.mdpytest
46 ls = '<br>' lp|features/lp/python/call_flow_logging/index.mdpytest