Searched refs:LineStream (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/kunit/
H A Dkunit_parser.py146 class LineStream: class in inherits:
158 """Creates a new LineStream that wraps the given iterator."""
176 """Returns the current line, without advancing the LineStream.
182 """Returns the current line and advances the LineStream to
187 raise ValueError(f'LineStream: going past EOF, last line was {s}')
198 """Empties all lines stored in LineStream object into
217 def extract_tap_lines(kernel_output: Iterable[str]) -> LineStream:
248 return LineStream(lines=isolate_ktap_output(kernel_output))
272 def parse_ktap_header(lines: LineStream, test: Test) -> bool:
282 lines - LineStream o
[all...]
H A Dkunit_tool_test.py91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
365 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream:
366 return kunit_parser.LineStream(enumerate(strs, start=1))
384 with self.assertRaisesRegex(ValueError, 'LineStream: going past EOF'):
395 stream = kunit_parser.LineStream(generator())

Completed in 136 milliseconds