MCPcopy Create free account
hub / github.com/apache/storm / _assert

Method _assert

dev-tools/report/formatter.py:29–33  ·  view source on GitHub ↗
(o1, o2, o3)

Source from the content-addressed store, hash-verified

27
28 @staticmethod
29 def _assert(o1, o2, o3):
30 if len(o1) != len(o2) and (o3 is not None and len(o2) != len(o3)):
31 raise RuntimeError("Object collections must have the same length. "
32 "len(o1)={0}, len(o2)={1}, len(o3)={2}"
33 .format(len(o1), len(o2), -1 if o3 is None else len(o3)))
34
35 # determines the widths from the data in order to print output with nice format
36 @staticmethod

Callers 1

__init__Method · 0.80

Calls 1

formatMethod · 0.65

Tested by

no test coverage detected