MCPcopy Create free account
hub / github.com/WebAssembly/wabt / Diff

Method Diff

test/run-tests.py:621–634  ·  view source on GitHub ↗
(self, stdout, stderr)

Source from the content-addressed store, hash-verified

619 f.write(b';;; STDOUT ;;)\n')
620
621 def Diff(self, stdout, stderr):
622 msg = ''
623 if self.expected_stderr != stderr:
624 diff_lines = DiffLines(self.expected_stderr, stderr)
625 if len(diff_lines) > 0:
626 msg += 'STDERR MISMATCH:\n' + '\n'.join(diff_lines) + '\n'
627
628 if self.expected_stdout != stdout:
629 diff_lines = DiffLines(self.expected_stdout, stdout)
630 if len(diff_lines) > 0:
631 msg += 'STDOUT MISMATCH:\n' + '\n'.join(diff_lines) + '\n'
632
633 if msg:
634 raise Error(msg)
635
636
637class Status(object):

Callers 1

HandleTestResultFunction · 0.80

Calls 3

ErrorClass · 0.90
DiffLinesFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected