MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / __init__

Method __init__

src/tests/coding/cpplint.py:1912–1922  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

1910 """
1911
1912 def __init__(self, lines):
1913 self.elided = []
1914 self.lines = []
1915 self.raw_lines = lines
1916 self.num_lines = len(lines)
1917 self.lines_without_raw_strings = CleanseRawStrings(lines)
1918 for linenum in range(len(self.lines_without_raw_strings)):
1919 self.lines.append(CleanseComments(
1920 self.lines_without_raw_strings[linenum]))
1921 elided = self._CollapseStrings(self.lines_without_raw_strings[linenum])
1922 self.elided.append(CleanseComments(elided))
1923
1924 def NumLines(self):
1925 """Returns the number of lines represented."""

Callers

nothing calls this directly

Calls 4

_CollapseStringsMethod · 0.95
CleanseRawStringsFunction · 0.85
CleanseCommentsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected