MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / startTest

Method startTest

test/single_line_runner.py:46–61  ·  view source on GitHub ↗
(self, test)

Source from the content-addressed store, hash-verified

44 self.stream.flush()
45
46 def startTest(self, test):
47 self.showAll = False
48 super().startTest(test)
49 self.showAll = True
50 clearline(self.stream)
51 prefix_len = self.writeProgressPrefix()
52 total_width = term_width()
53 max_desc = total_width - prefix_len - len(' ... ') - self.min_status_msg
54 desc = str(test)[:max_desc]
55 self.stream.write(desc)
56 self.stream.write(' ... ')
57 self.stream.flush()
58
59 # Calculate the remaining terminal width available for the _write_status
60 # message. This will never be lower than `self.max_status_msg`
61 self.status_limit = total_width - prefix_len - len(desc) - len(' ... ')
62
63 def printErrors(self):
64 # All tests have been run at this point so print a final newline

Callers

nothing calls this directly

Calls 5

clearlineFunction · 0.85
term_widthFunction · 0.85
writeProgressPrefixMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected