summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2022-05-06 13:43:02 +0900
committerMichele Calgaro <[email protected]>2022-05-06 13:49:57 +0900
commit80a31d6c8a114799dc5284086ffce2e9be34c50e (patch)
tree1719891657e76c04f063f5ff7b5fdf63d9e562c3 /debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py
parente6ba08c3b21cdb14ee3a97b5d584759a4597b54b (diff)
downloadextra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.tar.gz
extra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.zip
uncrustify-trinity: updated based on upstream version 0.75.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py82
1 files changed, 0 insertions, 82 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py
deleted file mode 100644
index 0972930f..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/test_uncrustify/failure.py
+++ /dev/null
@@ -1,82 +0,0 @@
-# Exceptions when a test fails.
-#
-# * @author Matthew Woehlke June 2018
-#
-
-
-# =============================================================================
-class Failure(Exception):
- pass
-
-# =============================================================================
-class TestDeclarationParseError(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, test_suite, line_number):
- self.test_suite = test_suite
- self.line_number = line_number
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return 'Error parsing line {!r} from the {!r} test suite'.format(
- self.line_number, self.test_suite)
-
-
-# =============================================================================
-class ExecutionFailure(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, exception):
- self.exception = exception
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return str(self.exception)
-
-
-# =============================================================================
-class MissingFailure(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, exception, missing_path):
- self.exception = exception
- self.missing_path = missing_path
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return 'Expected output file not found: {!r}'.format(self.missing_path)
-
-
-# =============================================================================
-class MismatchFailure(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, expected, actual):
- self.expected_path = expected
- self.actual_path = actual
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return 'Output {!r} does not match expected output {!r}'.format(
- self.actual_path, self.expected_path)
-
-
-# =============================================================================
-class UnstableFailure(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, expected, actual):
- self.expected_path = expected
- self.actual_path = actual
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return 'Output {!r} does not match expected output {!r}'.format(
- self.actual_path, self.expected_path)
-
-# =============================================================================
-class UnexpectedlyPassingFailure(Failure):
- # -------------------------------------------------------------------------
- def __init__(self, expected, actual):
- self.expected_path = expected
- self.actual_path = actual
-
- # -------------------------------------------------------------------------
- def __str__(self):
- return 'Output {!r} unexpectedly matches expected output {!r}'.format(
- self.actual_path, self.expected_path)