packaging: Try using uv workspaces.
This commit is contained in:
parent
e6256f296f
commit
fe5389d698
96 changed files with 46 additions and 90 deletions
229
tests/__main___test.py
Executable file
229
tests/__main___test.py
Executable file
|
|
@ -0,0 +1,229 @@
|
|||
#!/usr/bin/env python3.11
|
||||
|
||||
|
||||
import asyncio
|
||||
import contextlib
|
||||
import io
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import fill3
|
||||
import termstr
|
||||
|
||||
import golden
|
||||
import eris.__main__ as __main__
|
||||
import eris.tools as tools
|
||||
__main__.tools = tools
|
||||
|
||||
|
||||
os.environ["TERM"] = "xterm-256color"
|
||||
_DIMENSIONS = (100, 60)
|
||||
|
||||
|
||||
def _widget_to_string(widget, dimensions=_DIMENSIONS):
|
||||
appearance = (widget.appearance() if dimensions is None
|
||||
else widget.appearance_for(dimensions))
|
||||
return str(termstr.join("\n", appearance))
|
||||
|
||||
|
||||
def _touch(path):
|
||||
open(path, "w").close()
|
||||
|
||||
|
||||
def _assert_widget_appearance(widget, golden_path, dimensions=_DIMENSIONS):
|
||||
golden_path_absolute = os.path.join(os.path.dirname(__file__), golden_path)
|
||||
golden.assertGolden(_widget_to_string(widget, dimensions), golden_path_absolute)
|
||||
|
||||
|
||||
class ScreenWidgetTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.temp_dir = tempfile.mkdtemp()
|
||||
project_dir = os.path.join(self.temp_dir, "project")
|
||||
os.mkdir(project_dir)
|
||||
foo_path = os.path.join(project_dir, "foo.py")
|
||||
_touch(foo_path)
|
||||
jobs_added_event = asyncio.Event()
|
||||
summary = __main__.Summary(project_dir, jobs_added_event)
|
||||
log = __main__.Log()
|
||||
self.main_widget = __main__.Screen(summary, log)
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.temp_dir)
|
||||
|
||||
def test_initial_appearance(self):
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/initial")
|
||||
|
||||
def test_help_appearance(self):
|
||||
self.main_widget.toggle_help()
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/help")
|
||||
|
||||
def test_log_appearance(self):
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/log-original")
|
||||
self.main_widget.toggle_log()
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/log")
|
||||
|
||||
def test_window_orientation(self):
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/window-orientation-original")
|
||||
self.main_widget.toggle_window_orientation()
|
||||
_assert_widget_appearance(self.main_widget, "golden-files/window-orientation")
|
||||
|
||||
|
||||
class SummaryCursorTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.original_method = __main__.Summary.sync_with_filesystem
|
||||
__main__.Summary.sync_with_filesystem = lambda foo: None
|
||||
self.summary = __main__.Summary(None, None)
|
||||
self.summary._entries = [[1, 1, 1], [1, 1], [1, 1, 1]]
|
||||
|
||||
def tearDown(self):
|
||||
__main__.Summary.sync_with_filesystem = self.original_method
|
||||
|
||||
def _assert_movements(self, movements):
|
||||
for movement, expected_position in movements:
|
||||
movement()
|
||||
self.assertEqual(self.summary.cursor_position(), expected_position)
|
||||
|
||||
def test_cursor_movement(self):
|
||||
self.assertEqual(self.summary.cursor_position(), (0, 0))
|
||||
self._assert_movements([(self.summary.cursor_right, (1, 0)),
|
||||
(self.summary.cursor_down, (1, 1)),
|
||||
(self.summary.cursor_left, (0, 1)),
|
||||
(self.summary.cursor_up, (0, 0))])
|
||||
|
||||
def test_cursor_wrapping(self):
|
||||
self._assert_movements([(self.summary.cursor_up, (0, 2)),
|
||||
(self.summary.cursor_down, (0, 0)),
|
||||
(self.summary.cursor_left, (2, 0)),
|
||||
(self.summary.cursor_right, (0, 0))])
|
||||
|
||||
def test_cursor_moving_between_different_sized_rows(self):
|
||||
self.summary._cursor_position = (2, 0)
|
||||
self._assert_movements([(self.summary.cursor_down, (1, 1)),
|
||||
(self.summary.cursor_down, (2, 2))])
|
||||
|
||||
|
||||
class SummarySyncWithFilesystemTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
fill3.APPEARANCE_CHANGED_EVENT = asyncio.Event()
|
||||
self.temp_dir = tempfile.mkdtemp()
|
||||
self.foo_path = os.path.join(self.temp_dir, "foo")
|
||||
self.bar_path = os.path.join(self.temp_dir, "bar.md")
|
||||
self.zoo_path = os.path.join(self.temp_dir, "zoo.html")
|
||||
self.jobs_added_event = asyncio.Event()
|
||||
self.summary = __main__.Summary(self.temp_dir, self.jobs_added_event)
|
||||
self.loop = asyncio.new_event_loop()
|
||||
|
||||
def callback(event):
|
||||
__main__.on_filesystem_event(event, self.summary, self.temp_dir)
|
||||
__main__.setup_inotify(self.temp_dir, self.loop, callback, __main__.is_path_excluded)
|
||||
_touch(self.foo_path)
|
||||
_touch(self.bar_path)
|
||||
self.log = __main__.Log()
|
||||
self.loop.run_until_complete(self.summary.sync_with_filesystem(self.log))
|
||||
self.jobs_added_event.clear()
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.temp_dir)
|
||||
|
||||
def _assert_paths(self, expected_paths):
|
||||
actual_paths = [entry[0].path for entry in self.summary._entries]
|
||||
self.assertEqual(set(actual_paths), set(expected_paths))
|
||||
|
||||
def _assert_summary_invariants(self):
|
||||
completed_total = 0
|
||||
result_total = 0
|
||||
for row in self.summary._entries:
|
||||
for result in row:
|
||||
if result.is_completed:
|
||||
completed_total += 1
|
||||
result_total += 1
|
||||
self.assertEqual(self.summary.completed_total, completed_total)
|
||||
self.assertEqual(self.summary.result_total, result_total)
|
||||
max_width = max((len(row) for row in self.summary._entries), default=0)
|
||||
self.assertEqual(__main__.Entry.MAX_WIDTH, max_width)
|
||||
max_path_length = max((len(row.path) - 2 for row in self.summary._entries), default=0)
|
||||
self.assertEqual(self.summary._max_path_length, max_path_length)
|
||||
|
||||
def test_summary_initial_state(self):
|
||||
self._assert_summary_invariants()
|
||||
self._assert_paths(["./bar.md", "./foo"])
|
||||
self.assertFalse(self.jobs_added_event.is_set())
|
||||
|
||||
def test_sync_removed_file(self):
|
||||
async def foo():
|
||||
os.remove(self.bar_path)
|
||||
self.loop.run_until_complete(foo())
|
||||
self._assert_paths(["./foo"])
|
||||
self._assert_summary_invariants()
|
||||
self.assertFalse(self.jobs_added_event.is_set())
|
||||
|
||||
def test_sync_added_file(self):
|
||||
async def foo():
|
||||
_touch(self.zoo_path)
|
||||
self.loop.run_until_complete(foo())
|
||||
self._assert_paths(["./bar.md", "./foo", "./zoo.html"])
|
||||
self._assert_summary_invariants()
|
||||
self.assertTrue(self.jobs_added_event.is_set())
|
||||
|
||||
def test_sync_linked_files(self):
|
||||
"""Symbolic and hard-linked files are given distinct entry objects."""
|
||||
baz_path = os.path.join(self.temp_dir, "baz")
|
||||
os.symlink(self.foo_path, baz_path)
|
||||
os.link(self.foo_path, self.zoo_path)
|
||||
log = __main__.Log()
|
||||
self.loop.run_until_complete(self.summary.sync_with_filesystem(log))
|
||||
self._assert_paths(["./bar.md", "./baz", "./foo", "./zoo.html"])
|
||||
self.assertTrue(id(self.summary._entries[1]) != # baz
|
||||
id(self.summary._entries[2])) # foo
|
||||
self.assertTrue(id(self.summary._entries[2]) != # foo
|
||||
id(self.summary._entries[3])) # zoo
|
||||
self.assertTrue(self.jobs_added_event.is_set())
|
||||
|
||||
|
||||
def _mount_total():
|
||||
with open("/proc/mounts") as proc_mounts:
|
||||
return len(proc_mounts.readlines())
|
||||
|
||||
|
||||
def _tmp_total():
|
||||
return len(os.listdir("/tmp"))
|
||||
|
||||
|
||||
class MainTestCase(unittest.TestCase):
|
||||
|
||||
def test_main_and_restart_and_no_leaks_and_is_relocatable(self):
|
||||
def test_run(root_path):
|
||||
mount_total = _mount_total()
|
||||
tmp_total = _tmp_total()
|
||||
foo_path = os.path.join(root_path, "foo")
|
||||
open(foo_path, "w").close()
|
||||
__main__.manage_cache(root_path)
|
||||
with __main__.chdir(root_path):
|
||||
loop = asyncio.get_event_loop()
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
loop.run_until_complete(__main__.main("test", root_path, worker_count=2))
|
||||
for file_name in ["summary.pickle", "source_checksum",
|
||||
"foo-metadata", "foo-contents"]:
|
||||
self.assertTrue(os.path.exists(".eris/" + file_name))
|
||||
self.assertEqual(_mount_total(), mount_total)
|
||||
self.assertEqual(_tmp_total(), tmp_total)
|
||||
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
try:
|
||||
first_dir = os.path.join(temp_dir, "first")
|
||||
os.mkdir(first_dir)
|
||||
test_run(first_dir)
|
||||
second_dir = os.path.join(temp_dir, "second")
|
||||
os.rename(first_dir, second_dir)
|
||||
test_run(second_dir)
|
||||
finally:
|
||||
shutil.rmtree(temp_dir)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
golden.main()
|
||||
60
tests/golden-files/help
Normal file
60
tests/golden-files/help
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┌────────────────────────────────────────────── Help ──────────────────────────────────────────────┐
|
||||
│Eris Codebase Monitor │
|
||||
│ │
|
||||
│Eris maintains an up-to-date set of reports for every file in a codebase. │
|
||||
│ │
|
||||
│A status indicator summarises the state of each report, and a report is viewed │
|
||||
│by selecting this status indicator with the cursor. │
|
||||
│ │
|
||||
│The reports are cached in the codebase's root directory in a ".eris" │
|
||||
│directory. │
|
||||
│ │
|
||||
│Keys: │
|
||||
│ arrow keys, page up/down, mouse - Move the cursor or scroll the result pane. │
|
||||
│ tab - Change the focus between summary and result pane. │
|
||||
│ q, esc - Quit. │
|
||||
│ h - Show the help screen. (toggle) │
|
||||
│ t - Turn the result pane to portrait or landscape. (toggle) │
|
||||
│ l - Show the activity log. (toggle) │
|
||||
│ e - Edit the current file with an editor defined by -e, $EDITOR or $VISUAL. │
|
||||
│ n - Move to the next issue. │
|
||||
│ N - Move to the next issue of the current tool. │
|
||||
│ s - Sort files by type, or by directory location. (toggle) │
|
||||
│ r - Refresh the currently selected report. │
|
||||
│ R - Refresh all reports of the current tool. │
|
||||
│ f - Resize the focused pane to the full screen. (toggle) │
|
||||
│ o - Open the current file with xdg-open. │
|
||||
│ │
|
||||
│Statuses: │
|
||||
│ [m[38;2;255;255;255m[48;2;0;159;107m [m[38;2;255;255;255m[48;2;0;0;0m Ok │
|
||||
│ [m[38;2;255;255;255m[48;2;0;119;80m [m[38;2;255;255;255m[48;2;0;0;0m Problem │
|
||||
│ [m[38;2;255;255;255m[48;2;80;80;80m [m[38;2;255;255;255m[48;2;0;0;0m Not applicable │
|
||||
│ [m[38;2;255;255;255m[48;2;0;255;0m [m[38;2;255;255;255m[48;2;0;0;0m Running │
|
||||
│ [m[38;2;255;255;255m[48;2;200;0;200m [m[38;2;255;255;255m[48;2;0;0;0m Timed out │
|
||||
│ [m[38;2;100;100;100m[48;2;0;0;0m.[m[38;2;255;255;255m[48;2;0;0;0m Pending │
|
||||
│ [m[38;2;255;255;255m[48;2;196;2;51m [m[38;2;255;255;255m[48;2;0;0;0m Error │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
60
tests/golden-files/initial
Normal file
60
tests/golden-files/initial
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┏━━━━━━━━ Summary of project ━━━━━━━━┓[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────────────────────────────────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0mNothing selected [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────[m[38;2;255;255;255m[48;2;0;0;0m Log [m[38;2;100;100;100m[48;2;0;0;0m───────────────┐│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m└────────────────────────────────────┘└────────────────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
BIN
tests/golden-files/input/circle.bmp
Normal file
BIN
tests/golden-files/input/circle.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
tests/golden-files/input/circle.gif
Normal file
BIN
tests/golden-files/input/circle.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 108 B |
BIN
tests/golden-files/input/circle.jpg
Normal file
BIN
tests/golden-files/input/circle.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 381 B |
BIN
tests/golden-files/input/circle.png
Normal file
BIN
tests/golden-files/input/circle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 320 B |
BIN
tests/golden-files/input/circle.ppm
Normal file
BIN
tests/golden-files/input/circle.ppm
Normal file
Binary file not shown.
BIN
tests/golden-files/input/circle.tga
Normal file
BIN
tests/golden-files/input/circle.tga
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 KiB |
BIN
tests/golden-files/input/circle.tiff
Normal file
BIN
tests/golden-files/input/circle.tiff
Normal file
Binary file not shown.
197
tests/golden-files/input/clojure-util.java
Normal file
197
tests/golden-files/input/clojure-util.java
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
/**
|
||||
* Copyright (c) Rich Hickey. All rights reserved.
|
||||
* The use and distribution terms for this software are covered by the
|
||||
* Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
|
||||
* which can be found in the file epl-v10.html at the root of this distribution.
|
||||
* By using this software in any fashion, you are agreeing to be bound by
|
||||
* the terms of this license.
|
||||
* You must not remove this notice, or any other, from this software.
|
||||
**/
|
||||
|
||||
/* rich Apr 19, 2008 */
|
||||
|
||||
package clojure.lang;
|
||||
|
||||
import java.lang.ref.Reference;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.lang.ref.ReferenceQueue;
|
||||
|
||||
public class Util{
|
||||
static public boolean equiv(Object k1, Object k2){
|
||||
if(k1 == k2)
|
||||
return true;
|
||||
if(k1 != null)
|
||||
{
|
||||
if(k1 instanceof Number && k2 instanceof Number)
|
||||
return Numbers.equal((Number)k1, (Number)k2);
|
||||
else if(k1 instanceof IPersistentCollection || k2 instanceof IPersistentCollection)
|
||||
return pcequiv(k1,k2);
|
||||
return k1.equals(k2);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static public boolean equiv(long k1, long k2){
|
||||
return k1 == k2;
|
||||
}
|
||||
|
||||
static public boolean equiv(Object k1, long k2){
|
||||
return equiv(k1, (Object)k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(long k1, Object k2){
|
||||
return equiv((Object)k1, k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(double k1, double k2){
|
||||
return k1 == k2;
|
||||
}
|
||||
|
||||
static public boolean equiv(Object k1, double k2){
|
||||
return equiv(k1, (Object)k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(double k1, Object k2){
|
||||
return equiv((Object)k1, k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(boolean k1, boolean k2){
|
||||
return k1 == k2;
|
||||
}
|
||||
|
||||
static public boolean equiv(Object k1, boolean k2){
|
||||
return equiv(k1, (Object)k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(boolean k1, Object k2){
|
||||
return equiv((Object)k1, k2);
|
||||
}
|
||||
|
||||
static public boolean equiv(char c1, char c2) {
|
||||
return c1 == c2;
|
||||
}
|
||||
|
||||
static public boolean pcequiv(Object k1, Object k2){
|
||||
if(k1 instanceof IPersistentCollection)
|
||||
return ((IPersistentCollection)k1).equiv(k2);
|
||||
return ((IPersistentCollection)k2).equiv(k1);
|
||||
}
|
||||
|
||||
static public boolean equals(Object k1, Object k2){
|
||||
if(k1 == k2)
|
||||
return true;
|
||||
return k1 != null && k1.equals(k2);
|
||||
}
|
||||
|
||||
static public boolean identical(Object k1, Object k2){
|
||||
return k1 == k2;
|
||||
}
|
||||
|
||||
static public Class classOf(Object x){
|
||||
if(x != null)
|
||||
return x.getClass();
|
||||
return null;
|
||||
}
|
||||
|
||||
static public int compare(Object k1, Object k2){
|
||||
if(k1 == k2)
|
||||
return 0;
|
||||
if(k1 != null)
|
||||
{
|
||||
if(k2 == null)
|
||||
return 1;
|
||||
if(k1 instanceof Number)
|
||||
return Numbers.compare((Number) k1, (Number) k2);
|
||||
return ((Comparable) k1).compareTo(k2);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
static public int hash(Object o){
|
||||
if(o == null)
|
||||
return 0;
|
||||
return o.hashCode();
|
||||
}
|
||||
|
||||
static public int hasheq(Object o){
|
||||
if(o == null)
|
||||
return 0;
|
||||
if(o instanceof Number)
|
||||
return Numbers.hasheq((Number)o);
|
||||
else if(o instanceof IHashEq)
|
||||
return ((IHashEq)o).hasheq();
|
||||
return o.hashCode();
|
||||
}
|
||||
|
||||
static public int hashCombine(int seed, int hash){
|
||||
//a la boost
|
||||
seed ^= hash + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
||||
return seed;
|
||||
}
|
||||
|
||||
static public boolean isPrimitive(Class c){
|
||||
return c != null && c.isPrimitive() && !(c == Void.TYPE);
|
||||
}
|
||||
|
||||
static public boolean isInteger(Object x){
|
||||
return x instanceof Integer
|
||||
|| x instanceof Long
|
||||
|| x instanceof BigInt
|
||||
|| x instanceof BigInteger;
|
||||
}
|
||||
|
||||
static public Object ret1(Object ret, Object nil){
|
||||
return ret;
|
||||
}
|
||||
|
||||
static public ISeq ret1(ISeq ret, Object nil){
|
||||
return ret;
|
||||
}
|
||||
|
||||
static public <K,V> void clearCache(ReferenceQueue rq, ConcurrentHashMap<K, Reference<V>> cache){
|
||||
//cleanup any dead entries
|
||||
if(rq.poll() != null)
|
||||
{
|
||||
while(rq.poll() != null)
|
||||
;
|
||||
for(Map.Entry<K, Reference<V>> e : cache.entrySet())
|
||||
{
|
||||
Reference<V> val = e.getValue();
|
||||
if(val != null && val.get() == null)
|
||||
cache.remove(e.getKey(), val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static public RuntimeException runtimeException(String s){
|
||||
return new RuntimeException(s);
|
||||
}
|
||||
|
||||
static public RuntimeException runtimeException(String s, Throwable e){
|
||||
return new RuntimeException(s, e);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw even checked exceptions without being required
|
||||
* to declare them or catch them. Suggested idiom:
|
||||
* <p>
|
||||
* <code>throw sneakyThrow( some exception );</code>
|
||||
*/
|
||||
static public RuntimeException sneakyThrow(Throwable t) {
|
||||
// http://www.mail-archive.com/javaposse@googlegroups.com/msg05984.html
|
||||
if (t == null)
|
||||
throw new NullPointerException();
|
||||
Util.<RuntimeException>sneakyThrow0(t);
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
static private <T extends Throwable> void sneakyThrow0(Throwable t) throws T {
|
||||
throw (T) t;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
7
tests/golden-files/input/hello.c
Normal file
7
tests/golden-files/input/hello.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello World\n");
|
||||
return 0;
|
||||
}
|
||||
8
tests/golden-files/input/hello.cpp
Normal file
8
tests/golden-files/input/hello.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Hello World" << endl;
|
||||
}
|
||||
6
tests/golden-files/input/hello.h
Normal file
6
tests/golden-files/input/hello.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef HELLO_H
|
||||
#define HELLO_H
|
||||
|
||||
void hello();
|
||||
|
||||
#endif
|
||||
4
tests/golden-files/input/hi.html
Normal file
4
tests/golden-files/input/hi.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>hello</body>
|
||||
</html>
|
||||
BIN
tests/golden-files/input/hi.tar.bz2
Normal file
BIN
tests/golden-files/input/hi.tar.bz2
Normal file
Binary file not shown.
BIN
tests/golden-files/input/hi.tar.gz
Normal file
BIN
tests/golden-files/input/hi.tar.gz
Normal file
Binary file not shown.
BIN
tests/golden-files/input/hi.tgz
Normal file
BIN
tests/golden-files/input/hi.tgz
Normal file
Binary file not shown.
BIN
tests/golden-files/input/hi.zip
Normal file
BIN
tests/golden-files/input/hi.zip
Normal file
Binary file not shown.
4
tests/golden-files/input/hi3.py
Normal file
4
tests/golden-files/input/hi3.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
def hi():
|
||||
print("hi")
|
||||
15
tests/golden-files/input/hi3_test.py
Executable file
15
tests/golden-files/input/hi3_test.py
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
|
||||
import unittest
|
||||
|
||||
import hi3
|
||||
|
||||
|
||||
class HiTestCase(unittest.TestCase):
|
||||
|
||||
def test_hi(self):
|
||||
hi3.hi()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
15
tests/golden-files/input/hi_test.py
Normal file
15
tests/golden-files/input/hi_test.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
|
||||
import unittest
|
||||
|
||||
import hi
|
||||
|
||||
|
||||
class HiTestCase(unittest.TestCase):
|
||||
|
||||
def test_hi(self):
|
||||
hi.hi()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
BIN
tests/golden-files/input/libieee.a
Normal file
BIN
tests/golden-files/input/libieee.a
Normal file
Binary file not shown.
BIN
tests/golden-files/input/libpcprofile.so
Normal file
BIN
tests/golden-files/input/libpcprofile.so
Normal file
Binary file not shown.
2
tests/golden-files/input/perl.pl
Normal file
2
tests/golden-files/input/perl.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/perl
|
||||
print "Hello, world!\n";
|
||||
6
tests/golden-files/input/root.php
Normal file
6
tests/golden-files/input/root.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
////////////////////////////////////
|
||||
// I am not Isabelle ROOT //
|
||||
////////////////////////////////////
|
||||
|
||||
?>
|
||||
BIN
tests/golden-files/input/rotatingtree.o
Normal file
BIN
tests/golden-files/input/rotatingtree.o
Normal file
Binary file not shown.
BIN
tests/golden-files/input/standard.pdf
Normal file
BIN
tests/golden-files/input/standard.pdf
Normal file
Binary file not shown.
4
tests/golden-files/input/test_foo.py
Executable file
4
tests/golden-files/input/test_foo.py
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
print("tested foo")
|
||||
60
tests/golden-files/log
Normal file
60
tests/golden-files/log
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┏━━━━━━━━ Summary of project ━━━━━━━━┓[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────────────────────────────────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0mNothing selected [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛[m[38;2;100;100;100m[48;2;0;0;0m└────────────────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
60
tests/golden-files/log-original
Normal file
60
tests/golden-files/log-original
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┏━━━━━━━━ Summary of project ━━━━━━━━┓[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────────────────────────────────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0mNothing selected [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────[m[38;2;255;255;255m[48;2;0;0;0m Log [m[38;2;100;100;100m[48;2;0;0;0m───────────────┐│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m└────────────────────────────────────┘└────────────────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
1
tests/golden-files/results/antic-closure-util_java
Normal file
1
tests/golden-files/results/antic-closure-util_java
Normal file
|
|
@ -0,0 +1 @@
|
|||
Verification completed: 0 reported messages
|
||||
0
tests/golden-files/results/c_syntax_clang-hello_c
Normal file
0
tests/golden-files/results/c_syntax_clang-hello_c
Normal file
1
tests/golden-files/results/c_syntax_gcc-hello_c
Normal file
1
tests/golden-files/results/c_syntax_gcc-hello_c
Normal file
|
|
@ -0,0 +1 @@
|
|||
[m
|
||||
4
tests/golden-files/results/contents-hi3_py
Normal file
4
tests/golden-files/results/contents-hi3_py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;110;191;38m[48;2;32;32;32m[1mdef[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;113;173;255m[48;2;32;32;32mhi[m[38;2;208;208;208m[48;2;32;32;32m():[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;47;188;205m[48;2;32;32;32mprint[m[38;2;208;208;208m[48;2;32;32;32m([m[38;2;237;157;19m[48;2;32;32;32m"hi"[m[38;2;208;208;208m[48;2;32;32;32m)[m
|
||||
0
tests/golden-files/results/cpp_syntax_clang-hello_cpp
Normal file
0
tests/golden-files/results/cpp_syntax_clang-hello_cpp
Normal file
1
tests/golden-files/results/cpp_syntax_gcc-hello_cpp
Normal file
1
tests/golden-files/results/cpp_syntax_gcc-hello_cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
[m
|
||||
1
tests/golden-files/results/html2text-hi_html
Normal file
1
tests/golden-files/results/html2text-hi_html
Normal file
|
|
@ -0,0 +1 @@
|
|||
hello
|
||||
16
tests/golden-files/results/html_syntax-hi_html
Normal file
16
tests/golden-files/results/html_syntax-hi_html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
|
||||
line 2 column 3 - Warning: inserting missing 'title' element
|
||||
Info: Document content looks like HTML5
|
||||
Tidy found 2 warnings and 0 errors!
|
||||
|
||||
|
||||
About HTML Tidy: https://github.com/htacg/tidy-html5
|
||||
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
|
||||
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
|
||||
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
|
||||
Validate your HTML documents: http://validator.w3.org/nu/
|
||||
Lobby your company to join the W3C: http://www.w3.org/Consortium
|
||||
|
||||
Do you speak a language other than English, or a different variant of
|
||||
English? Consider helping us to localize HTML Tidy. For details please see
|
||||
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md
|
||||
1
tests/golden-files/results/jlint-javaversion_class
Normal file
1
tests/golden-files/results/jlint-javaversion_class
Normal file
|
|
@ -0,0 +1 @@
|
|||
Verification completed: 0 reported messages.
|
||||
16
tests/golden-files/results/metadata-hi3_py
Normal file
16
tests/golden-files/results/metadata-hi3_py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[m[38;2;0;135;189m[48;2;0;0;0msize:[m[38;2;255;255;255m[48;2;0;0;0m 12.0 B[m[38;2;100;100;100m[48;2;0;0;0m (12 bytes)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mpermissions:[m[38;2;255;255;255m[48;2;0;0;0m ?rwxr-xr-x[m[38;2;100;100;100m[48;2;0;0;0m (755)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mmodified time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mcreation time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0maccess time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:07 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282047 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mowner:[m[38;2;255;255;255m[48;2;0;0;0m foo[m[38;2;100;100;100m[48;2;0;0;0m (1111 uid)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mgroup:[m[38;2;255;255;255m[48;2;0;0;0m foo[m[38;2;100;100;100m[48;2;0;0;0m (1111 gid)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mhardlinks:[m[38;2;255;255;255m[48;2;0;0;0m 2
|
||||
[m[38;2;0;135;189m[48;2;0;0;0msymlink:[m[38;2;255;255;255m[48;2;0;0;0m no
|
||||
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mmime type:[m[38;2;255;255;255m[48;2;0;0;0m text/x-script.python; charset=us-ascii
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mfile type:[m[38;2;255;255;255m[48;2;0;0;0m Python script, ASCII text executable
|
||||
[m
|
||||
1
tests/golden-files/results/mypy-hi3_py
Normal file
1
tests/golden-files/results/mypy-hi3_py
Normal file
|
|
@ -0,0 +1 @@
|
|||
Success: no issues found in 1 source file
|
||||
1
tests/golden-files/results/nm-libieee_a
Normal file
1
tests/golden-files/results/nm-libieee_a
Normal file
|
|
@ -0,0 +1 @@
|
|||
00000000 D _LIB_VERSION
|
||||
1
tests/golden-files/results/nm-libpcprofile_so
Normal file
1
tests/golden-files/results/nm-libpcprofile_so
Normal file
|
|
@ -0,0 +1 @@
|
|||
nm: ./input/libpcprofile.so: no symbols
|
||||
287
tests/golden-files/results/objdump_disassemble-rotatingtree_o
Normal file
287
tests/golden-files/results/objdump_disassemble-rotatingtree_o
Normal file
|
|
@ -0,0 +1,287 @@
|
|||
|
||||
./input/rotatingtree.o: file format elf64-x86-64
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
0000000000000000 <RotatingTree_Add>:
|
||||
0: f3 0f 1e fa endbr64
|
||||
4: 48 8b 07 mov (%rdi),%rax
|
||||
7: 48 85 c0 test %rax,%rax
|
||||
a: 74 1b je 27 <RotatingTree_Add+0x27>
|
||||
c: 48 8b 0e mov (%rsi),%rcx
|
||||
f: 90 nop
|
||||
10: 48 8d 50 08 lea 0x8(%rax),%rdx
|
||||
14: 48 8d 78 10 lea 0x10(%rax),%rdi
|
||||
18: 48 3b 08 cmp (%rax),%rcx
|
||||
1b: 48 0f 42 fa cmovb %rdx,%rdi
|
||||
1f: 48 8b 07 mov (%rdi),%rax
|
||||
22: 48 85 c0 test %rax,%rax
|
||||
25: 75 e9 jne 10 <RotatingTree_Add+0x10>
|
||||
27: 66 0f ef c0 pxor %xmm0,%xmm0
|
||||
2b: 0f 11 46 08 movups %xmm0,0x8(%rsi)
|
||||
2f: 48 89 37 mov %rsi,(%rdi)
|
||||
32: c3 ret
|
||||
33: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1)
|
||||
3a: 00 00 00 00
|
||||
3e: 66 90 xchg %ax,%ax
|
||||
|
||||
0000000000000040 <RotatingTree_Get>:
|
||||
40: f3 0f 1e fa endbr64
|
||||
44: 8b 0d 00 00 00 00 mov 0x0(%rip),%ecx # 4a <RotatingTree_Get+0xa>
|
||||
46: R_X86_64_PC32 .bss-0x4
|
||||
4a: 49 89 f8 mov %rdi,%r8
|
||||
4d: 83 f9 07 cmp $0x7,%ecx
|
||||
50: 77 10 ja 62 <RotatingTree_Get+0x22>
|
||||
52: 69 0d 00 00 00 00 9f imul $0x10849f,0x0(%rip),%ecx # 5c <RotatingTree_Get+0x1c>
|
||||
59: 84 10 00
|
||||
54: R_X86_64_PC32 .data-0x8
|
||||
5c: 89 0d 00 00 00 00 mov %ecx,0x0(%rip) # 62 <RotatingTree_Get+0x22>
|
||||
5e: R_X86_64_PC32 .data-0x4
|
||||
62: 89 ca mov %ecx,%edx
|
||||
64: 83 e1 07 and $0x7,%ecx
|
||||
67: 49 8b 00 mov (%r8),%rax
|
||||
6a: c1 ea 03 shr $0x3,%edx
|
||||
6d: 89 15 00 00 00 00 mov %edx,0x0(%rip) # 73 <RotatingTree_Get+0x33>
|
||||
6f: R_X86_64_PC32 .bss-0x4
|
||||
73: 83 f9 04 cmp $0x4,%ecx
|
||||
76: 74 48 je c0 <RotatingTree_Get+0x80>
|
||||
78: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
|
||||
7f: 00
|
||||
80: 48 85 c0 test %rax,%rax
|
||||
83: 74 35 je ba <RotatingTree_Get+0x7a>
|
||||
85: 48 39 30 cmp %rsi,(%rax)
|
||||
88: 74 17 je a1 <RotatingTree_Get+0x61>
|
||||
8a: 48 8b 50 08 mov 0x8(%rax),%rdx
|
||||
8e: 48 8b 40 10 mov 0x10(%rax),%rax
|
||||
92: 76 ec jbe 80 <RotatingTree_Get+0x40>
|
||||
94: 48 85 d2 test %rdx,%rdx
|
||||
97: 74 21 je ba <RotatingTree_Get+0x7a>
|
||||
99: 48 89 d0 mov %rdx,%rax
|
||||
9c: 48 39 30 cmp %rsi,(%rax)
|
||||
9f: 75 e9 jne 8a <RotatingTree_Get+0x4a>
|
||||
a1: c3 ret
|
||||
a2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
|
||||
a8: 89 15 00 00 00 00 mov %edx,0x0(%rip) # ae <RotatingTree_Get+0x6e>
|
||||
aa: R_X86_64_PC32 .bss-0x4
|
||||
ae: 45 84 d2 test %r10b,%r10b
|
||||
b1: 74 07 je ba <RotatingTree_Get+0x7a>
|
||||
b3: 44 89 0d 00 00 00 00 mov %r9d,0x0(%rip) # ba <RotatingTree_Get+0x7a>
|
||||
b6: R_X86_64_PC32 .data-0x4
|
||||
ba: 31 c0 xor %eax,%eax
|
||||
bc: c3 ret
|
||||
bd: 0f 1f 00 nopl (%rax)
|
||||
c0: 48 85 c0 test %rax,%rax
|
||||
c3: 74 f5 je ba <RotatingTree_Get+0x7a>
|
||||
c5: 48 8b 08 mov (%rax),%rcx
|
||||
c8: 48 39 ce cmp %rcx,%rsi
|
||||
cb: 74 d4 je a1 <RotatingTree_Get+0x61>
|
||||
cd: 44 8b 0d 00 00 00 00 mov 0x0(%rip),%r9d # d4 <RotatingTree_Get+0x94>
|
||||
d0: R_X86_64_PC32 .data-0x4
|
||||
d4: 45 31 d2 xor %r10d,%r10d
|
||||
d7: eb 32 jmp 10b <RotatingTree_Get+0xcb>
|
||||
d9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
|
||||
e0: 48 8b 48 08 mov 0x8(%rax),%rcx
|
||||
e4: 48 85 c9 test %rcx,%rcx
|
||||
e7: 74 bf je a8 <RotatingTree_Get+0x68>
|
||||
e9: 85 ff test %edi,%edi
|
||||
eb: 0f 85 7f 00 00 00 jne 170 <RotatingTree_Get+0x130>
|
||||
f1: 48 8b 79 10 mov 0x10(%rcx),%rdi
|
||||
f5: 48 89 78 08 mov %rdi,0x8(%rax)
|
||||
f9: 48 89 41 10 mov %rax,0x10(%rcx)
|
||||
fd: 48 89 c8 mov %rcx,%rax
|
||||
100: 49 89 08 mov %rcx,(%r8)
|
||||
103: 48 8b 08 mov (%rax),%rcx
|
||||
106: 48 39 f1 cmp %rsi,%rcx
|
||||
109: 74 4c je 157 <RotatingTree_Get+0x117>
|
||||
10b: 83 fa 01 cmp $0x1,%edx
|
||||
10e: 77 10 ja 120 <RotatingTree_Get+0xe0>
|
||||
110: 41 69 d1 9f 84 10 00 imul $0x10849f,%r9d,%edx
|
||||
117: 41 ba 01 00 00 00 mov $0x1,%r10d
|
||||
11d: 41 89 d1 mov %edx,%r9d
|
||||
120: 89 d7 mov %edx,%edi
|
||||
122: d1 ea shr $1,%edx
|
||||
124: 83 e7 01 and $0x1,%edi
|
||||
127: 48 39 ce cmp %rcx,%rsi
|
||||
12a: 72 b4 jb e0 <RotatingTree_Get+0xa0>
|
||||
12c: 48 8b 48 10 mov 0x10(%rax),%rcx
|
||||
130: 48 85 c9 test %rcx,%rcx
|
||||
133: 0f 84 6f ff ff ff je a8 <RotatingTree_Get+0x68>
|
||||
139: 85 ff test %edi,%edi
|
||||
13b: 75 43 jne 180 <RotatingTree_Get+0x140>
|
||||
13d: 48 8b 79 08 mov 0x8(%rcx),%rdi
|
||||
141: 48 89 78 10 mov %rdi,0x10(%rax)
|
||||
145: 48 89 41 08 mov %rax,0x8(%rcx)
|
||||
149: 48 89 c8 mov %rcx,%rax
|
||||
14c: 49 89 08 mov %rcx,(%r8)
|
||||
14f: 48 8b 08 mov (%rax),%rcx
|
||||
152: 48 39 f1 cmp %rsi,%rcx
|
||||
155: 75 b4 jne 10b <RotatingTree_Get+0xcb>
|
||||
157: 89 15 00 00 00 00 mov %edx,0x0(%rip) # 15d <RotatingTree_Get+0x11d>
|
||||
159: R_X86_64_PC32 .bss-0x4
|
||||
15d: 45 84 d2 test %r10b,%r10b
|
||||
160: 0f 84 3b ff ff ff je a1 <RotatingTree_Get+0x61>
|
||||
166: 44 89 0d 00 00 00 00 mov %r9d,0x0(%rip) # 16d <RotatingTree_Get+0x12d>
|
||||
169: R_X86_64_PC32 .data-0x4
|
||||
16d: c3 ret
|
||||
16e: 66 90 xchg %ax,%ax
|
||||
170: 4c 8d 40 08 lea 0x8(%rax),%r8
|
||||
174: 48 89 c8 mov %rcx,%rax
|
||||
177: eb 8a jmp 103 <RotatingTree_Get+0xc3>
|
||||
179: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
|
||||
180: 4c 8d 40 10 lea 0x10(%rax),%r8
|
||||
184: 48 89 c8 mov %rcx,%rax
|
||||
187: e9 77 ff ff ff jmp 103 <RotatingTree_Get+0xc3>
|
||||
18c: 0f 1f 40 00 nopl 0x0(%rax)
|
||||
|
||||
0000000000000190 <RotatingTree_Enum>:
|
||||
190: f3 0f 1e fa endbr64
|
||||
194: 41 57 push %r15
|
||||
196: 41 56 push %r14
|
||||
198: 41 55 push %r13
|
||||
19a: 41 54 push %r12
|
||||
19c: 55 push %rbp
|
||||
19d: 48 89 f5 mov %rsi,%rbp
|
||||
1a0: 53 push %rbx
|
||||
1a1: 48 89 d3 mov %rdx,%rbx
|
||||
1a4: 48 83 ec 38 sub $0x38,%rsp
|
||||
1a8: 48 89 7c 24 10 mov %rdi,0x10(%rsp)
|
||||
1ad: 48 83 7c 24 10 00 cmpq $0x0,0x10(%rsp)
|
||||
1b3: 0f 84 ed 01 00 00 je 3a6 <RotatingTree_Enum+0x216>
|
||||
1b9: 48 8b 44 24 10 mov 0x10(%rsp),%rax
|
||||
1be: 48 8b 40 08 mov 0x8(%rax),%rax
|
||||
1c2: 48 89 44 24 08 mov %rax,0x8(%rsp)
|
||||
1c7: 48 83 7c 24 08 00 cmpq $0x0,0x8(%rsp)
|
||||
1cd: 0f 84 b0 01 00 00 je 383 <RotatingTree_Enum+0x1f3>
|
||||
1d3: 48 8b 44 24 08 mov 0x8(%rsp),%rax
|
||||
1d8: 4c 8b 60 08 mov 0x8(%rax),%r12
|
||||
1dc: 4d 85 e4 test %r12,%r12
|
||||
1df: 0f 84 7b 01 00 00 je 360 <RotatingTree_Enum+0x1d0>
|
||||
1e5: 4d 8b 6c 24 08 mov 0x8(%r12),%r13
|
||||
1ea: 4d 85 ed test %r13,%r13
|
||||
1ed: 0f 84 50 01 00 00 je 343 <RotatingTree_Enum+0x1b3>
|
||||
1f3: 4d 8b 75 08 mov 0x8(%r13),%r14
|
||||
1f7: 4d 85 f6 test %r14,%r14
|
||||
1fa: 0f 84 27 01 00 00 je 327 <RotatingTree_Enum+0x197>
|
||||
200: 4d 8b 7e 08 mov 0x8(%r14),%r15
|
||||
204: 4d 85 ff test %r15,%r15
|
||||
207: 0f 84 fa 00 00 00 je 307 <RotatingTree_Enum+0x177>
|
||||
20d: 4d 8b 47 08 mov 0x8(%r15),%r8
|
||||
211: 4d 85 c0 test %r8,%r8
|
||||
214: 0f 84 c6 00 00 00 je 2e0 <RotatingTree_Enum+0x150>
|
||||
21a: 4d 8b 48 08 mov 0x8(%r8),%r9
|
||||
21e: 4d 85 c9 test %r9,%r9
|
||||
221: 0f 84 92 00 00 00 je 2b9 <RotatingTree_Enum+0x129>
|
||||
227: 4d 8b 51 08 mov 0x8(%r9),%r10
|
||||
22b: 4d 85 d2 test %r10,%r10
|
||||
22e: 74 58 je 288 <RotatingTree_Enum+0xf8>
|
||||
230: 49 8b 7a 08 mov 0x8(%r10),%rdi
|
||||
234: 48 89 da mov %rbx,%rdx
|
||||
237: 48 89 ee mov %rbp,%rsi
|
||||
23a: 4c 89 4c 24 28 mov %r9,0x28(%rsp)
|
||||
23f: 4c 89 44 24 20 mov %r8,0x20(%rsp)
|
||||
244: 4c 89 54 24 18 mov %r10,0x18(%rsp)
|
||||
249: e8 00 00 00 00 call 24e <RotatingTree_Enum+0xbe>
|
||||
24a: R_X86_64_PLT32 RotatingTree_Enum-0x4
|
||||
24e: 85 c0 test %eax,%eax
|
||||
250: 0f 85 52 01 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
256: 4c 8b 54 24 18 mov 0x18(%rsp),%r10
|
||||
25b: 48 89 de mov %rbx,%rsi
|
||||
25e: 49 8b 42 10 mov 0x10(%r10),%rax
|
||||
262: 4c 89 d7 mov %r10,%rdi
|
||||
265: 48 89 44 24 18 mov %rax,0x18(%rsp)
|
||||
26a: ff d5 call *%rbp
|
||||
26c: 85 c0 test %eax,%eax
|
||||
26e: 0f 85 34 01 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
274: 4c 8b 54 24 18 mov 0x18(%rsp),%r10
|
||||
279: 4c 8b 4c 24 28 mov 0x28(%rsp),%r9
|
||||
27e: 4c 8b 44 24 20 mov 0x20(%rsp),%r8
|
||||
283: 4d 85 d2 test %r10,%r10
|
||||
286: 75 a8 jne 230 <RotatingTree_Enum+0xa0>
|
||||
288: 49 8b 41 10 mov 0x10(%r9),%rax
|
||||
28c: 4c 89 44 24 20 mov %r8,0x20(%rsp)
|
||||
291: 48 89 de mov %rbx,%rsi
|
||||
294: 4c 89 cf mov %r9,%rdi
|
||||
297: 48 89 44 24 18 mov %rax,0x18(%rsp)
|
||||
29c: ff d5 call *%rbp
|
||||
29e: 85 c0 test %eax,%eax
|
||||
2a0: 0f 85 02 01 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
2a6: 4c 8b 4c 24 18 mov 0x18(%rsp),%r9
|
||||
2ab: 4c 8b 44 24 20 mov 0x20(%rsp),%r8
|
||||
2b0: 4d 85 c9 test %r9,%r9
|
||||
2b3: 0f 85 6e ff ff ff jne 227 <RotatingTree_Enum+0x97>
|
||||
2b9: 49 8b 40 10 mov 0x10(%r8),%rax
|
||||
2bd: 48 89 de mov %rbx,%rsi
|
||||
2c0: 4c 89 c7 mov %r8,%rdi
|
||||
2c3: 48 89 44 24 18 mov %rax,0x18(%rsp)
|
||||
2c8: ff d5 call *%rbp
|
||||
2ca: 85 c0 test %eax,%eax
|
||||
2cc: 0f 85 d6 00 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
2d2: 4c 8b 44 24 18 mov 0x18(%rsp),%r8
|
||||
2d7: 4d 85 c0 test %r8,%r8
|
||||
2da: 0f 85 3a ff ff ff jne 21a <RotatingTree_Enum+0x8a>
|
||||
2e0: 49 8b 47 10 mov 0x10(%r15),%rax
|
||||
2e4: 48 89 de mov %rbx,%rsi
|
||||
2e7: 4c 89 ff mov %r15,%rdi
|
||||
2ea: 48 89 44 24 18 mov %rax,0x18(%rsp)
|
||||
2ef: ff d5 call *%rbp
|
||||
2f1: 85 c0 test %eax,%eax
|
||||
2f3: 0f 85 af 00 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
2f9: 4c 8b 7c 24 18 mov 0x18(%rsp),%r15
|
||||
2fe: 4d 85 ff test %r15,%r15
|
||||
301: 0f 85 06 ff ff ff jne 20d <RotatingTree_Enum+0x7d>
|
||||
307: 4d 8b 7e 10 mov 0x10(%r14),%r15
|
||||
30b: 48 89 de mov %rbx,%rsi
|
||||
30e: 4c 89 f7 mov %r14,%rdi
|
||||
311: ff d5 call *%rbp
|
||||
313: 85 c0 test %eax,%eax
|
||||
315: 0f 85 8d 00 00 00 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
31b: 4d 89 fe mov %r15,%r14
|
||||
31e: 4d 85 f6 test %r14,%r14
|
||||
321: 0f 85 d9 fe ff ff jne 200 <RotatingTree_Enum+0x70>
|
||||
327: 4d 8b 75 10 mov 0x10(%r13),%r14
|
||||
32b: 48 89 de mov %rbx,%rsi
|
||||
32e: 4c 89 ef mov %r13,%rdi
|
||||
331: ff d5 call *%rbp
|
||||
333: 85 c0 test %eax,%eax
|
||||
335: 75 71 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
337: 4d 89 f5 mov %r14,%r13
|
||||
33a: 4d 85 ed test %r13,%r13
|
||||
33d: 0f 85 b0 fe ff ff jne 1f3 <RotatingTree_Enum+0x63>
|
||||
343: 4d 8b 6c 24 10 mov 0x10(%r12),%r13
|
||||
348: 48 89 de mov %rbx,%rsi
|
||||
34b: 4c 89 e7 mov %r12,%rdi
|
||||
34e: ff d5 call *%rbp
|
||||
350: 85 c0 test %eax,%eax
|
||||
352: 75 54 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
354: 4d 89 ec mov %r13,%r12
|
||||
357: 4d 85 e4 test %r12,%r12
|
||||
35a: 0f 85 85 fe ff ff jne 1e5 <RotatingTree_Enum+0x55>
|
||||
360: 48 8b 7c 24 08 mov 0x8(%rsp),%rdi
|
||||
365: 48 89 de mov %rbx,%rsi
|
||||
368: 4c 8b 67 10 mov 0x10(%rdi),%r12
|
||||
36c: ff d5 call *%rbp
|
||||
36e: 85 c0 test %eax,%eax
|
||||
370: 75 36 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
372: 4c 89 64 24 08 mov %r12,0x8(%rsp)
|
||||
377: 48 83 7c 24 08 00 cmpq $0x0,0x8(%rsp)
|
||||
37d: 0f 85 50 fe ff ff jne 1d3 <RotatingTree_Enum+0x43>
|
||||
383: 48 8b 7c 24 10 mov 0x10(%rsp),%rdi
|
||||
388: 48 89 de mov %rbx,%rsi
|
||||
38b: 4c 8b 67 10 mov 0x10(%rdi),%r12
|
||||
38f: ff d5 call *%rbp
|
||||
391: 85 c0 test %eax,%eax
|
||||
393: 75 13 jne 3a8 <RotatingTree_Enum+0x218>
|
||||
395: 4c 89 64 24 10 mov %r12,0x10(%rsp)
|
||||
39a: 48 83 7c 24 10 00 cmpq $0x0,0x10(%rsp)
|
||||
3a0: 0f 85 13 fe ff ff jne 1b9 <RotatingTree_Enum+0x29>
|
||||
3a6: 31 c0 xor %eax,%eax
|
||||
3a8: 48 83 c4 38 add $0x38,%rsp
|
||||
3ac: 5b pop %rbx
|
||||
3ad: 5d pop %rbp
|
||||
3ae: 41 5c pop %r12
|
||||
3b0: 41 5d pop %r13
|
||||
3b2: 41 5e pop %r14
|
||||
3b4: 41 5f pop %r15
|
||||
3b6: c3 ret
|
||||
objdump: ./input/rotatingtree.o: not a dynamic object
|
||||
290
tests/golden-files/results/objdump_headers-rotatingtree_o
Normal file
290
tests/golden-files/results/objdump_headers-rotatingtree_o
Normal file
|
|
@ -0,0 +1,290 @@
|
|||
|
||||
./input/rotatingtree.o: file format elf64-x86-64
|
||||
./input/rotatingtree.o
|
||||
architecture: i386:x86-64, flags 0x00000011:
|
||||
HAS_RELOC, HAS_SYMS
|
||||
start address 0x0000000000000000
|
||||
|
||||
Sections:
|
||||
Idx Name Size VMA LMA File off Algn
|
||||
0 .text 000003b7 0000000000000000 0000000000000000 00000040 2**4
|
||||
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
|
||||
1 .data 00000004 0000000000000000 0000000000000000 000003f8 2**2
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
2 .bss 00000004 0000000000000000 0000000000000000 000003fc 2**2
|
||||
ALLOC
|
||||
3 .debug_info 00000747 0000000000000000 0000000000000000 000003fc 2**0
|
||||
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
|
||||
4 .debug_abbrev 00000232 0000000000000000 0000000000000000 00000b43 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
5 .debug_loclists 00000454 0000000000000000 0000000000000000 00000d75 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
6 .debug_aranges 00000030 0000000000000000 0000000000000000 000011c9 2**0
|
||||
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
|
||||
7 .debug_rnglists 0000001f 0000000000000000 0000000000000000 000011f9 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
8 .debug_line 00000420 0000000000000000 0000000000000000 00001218 2**0
|
||||
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
|
||||
9 .debug_str 0000021b 0000000000000000 0000000000000000 00001638 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
10 .debug_line_str 000000e0 0000000000000000 0000000000000000 00001853 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
11 .comment 00000026 0000000000000000 0000000000000000 00001933 2**0
|
||||
CONTENTS, READONLY
|
||||
12 .note.GNU-stack 00000000 0000000000000000 0000000000000000 00001959 2**0
|
||||
CONTENTS, READONLY
|
||||
13 .note.gnu.property 00000020 0000000000000000 0000000000000000 00001960 2**3
|
||||
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
||||
14 .eh_frame 00000090 0000000000000000 0000000000000000 00001980 2**3
|
||||
CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
|
||||
SYMBOL TABLE:
|
||||
0000000000000000 l df *ABS* 0000000000000000 rotatingtree.c
|
||||
0000000000000000 l d .text 0000000000000000 .text
|
||||
0000000000000000 l d .data 0000000000000000 .data
|
||||
0000000000000000 l d .bss 0000000000000000 .bss
|
||||
0000000000000000 l O .bss 0000000000000004 random_stream
|
||||
0000000000000000 l O .data 0000000000000004 random_value
|
||||
0000000000000000 l d .debug_info 0000000000000000 .debug_info
|
||||
0000000000000000 l d .debug_abbrev 0000000000000000 .debug_abbrev
|
||||
0000000000000000 l d .debug_loclists 0000000000000000 .debug_loclists
|
||||
0000000000000000 l d .debug_rnglists 0000000000000000 .debug_rnglists
|
||||
0000000000000000 l d .debug_line 0000000000000000 .debug_line
|
||||
0000000000000000 l d .debug_str 0000000000000000 .debug_str
|
||||
0000000000000000 l d .debug_line_str 0000000000000000 .debug_line_str
|
||||
0000000000000000 g F .text 0000000000000033 .hidden RotatingTree_Add
|
||||
0000000000000040 g F .text 000000000000014c .hidden RotatingTree_Get
|
||||
0000000000000190 g F .text 0000000000000227 .hidden RotatingTree_Enum
|
||||
|
||||
|
||||
RELOCATION RECORDS FOR [.text]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000046 R_X86_64_PC32 .bss-0x0000000000000004
|
||||
0000000000000054 R_X86_64_PC32 .data-0x0000000000000008
|
||||
000000000000005e R_X86_64_PC32 .data-0x0000000000000004
|
||||
000000000000006f R_X86_64_PC32 .bss-0x0000000000000004
|
||||
00000000000000aa R_X86_64_PC32 .bss-0x0000000000000004
|
||||
00000000000000b6 R_X86_64_PC32 .data-0x0000000000000004
|
||||
00000000000000d0 R_X86_64_PC32 .data-0x0000000000000004
|
||||
0000000000000159 R_X86_64_PC32 .bss-0x0000000000000004
|
||||
0000000000000169 R_X86_64_PC32 .data-0x0000000000000004
|
||||
000000000000024a R_X86_64_PLT32 RotatingTree_Enum-0x0000000000000004
|
||||
|
||||
|
||||
RELOCATION RECORDS FOR [.debug_info]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000008 R_X86_64_32 .debug_abbrev
|
||||
000000000000000d R_X86_64_32 .debug_str
|
||||
0000000000000012 R_X86_64_32 .debug_line_str
|
||||
0000000000000016 R_X86_64_32 .debug_line_str+0x0000000000000033
|
||||
000000000000001a R_X86_64_64 .text
|
||||
000000000000002a R_X86_64_32 .debug_line
|
||||
0000000000000031 R_X86_64_32 .debug_str+0x000000000000016f
|
||||
000000000000003f R_X86_64_32 .debug_str+0x00000000000001f5
|
||||
0000000000000046 R_X86_64_32 .debug_str+0x00000000000001c0
|
||||
000000000000004d R_X86_64_32 .debug_str+0x0000000000000122
|
||||
0000000000000054 R_X86_64_32 .debug_str+0x0000000000000143
|
||||
000000000000005b R_X86_64_32 .debug_str+0x00000000000001a6
|
||||
0000000000000062 R_X86_64_32 .debug_str+0x00000000000001fe
|
||||
0000000000000069 R_X86_64_32 .debug_str+0x00000000000001e6
|
||||
0000000000000072 R_X86_64_32 .debug_str+0x00000000000001ce
|
||||
0000000000000079 R_X86_64_32 .debug_str+0x000000000000010b
|
||||
000000000000007e R_X86_64_32 .debug_str+0x0000000000000191
|
||||
0000000000000089 R_X86_64_32 .debug_str+0x0000000000000181
|
||||
00000000000000a3 R_X86_64_32 .debug_str+0x00000000000000de
|
||||
00000000000000ae R_X86_64_32 .debug_str+0x000000000000013d
|
||||
00000000000000ba R_X86_64_32 .debug_str+0x00000000000000e3
|
||||
00000000000000e3 R_X86_64_32 .debug_str+0x0000000000000130
|
||||
00000000000000ee R_X86_64_64 .data
|
||||
00000000000000f7 R_X86_64_32 .debug_str+0x00000000000001d8
|
||||
0000000000000102 R_X86_64_64 .bss
|
||||
000000000000010b R_X86_64_32 .debug_str+0x0000000000000156
|
||||
000000000000011c R_X86_64_32 .debug_str+0x00000000000001a1
|
||||
0000000000000127 R_X86_64_32 .debug_str+0x00000000000000f9
|
||||
000000000000013e R_X86_64_32 .debug_str+0x00000000000001b9
|
||||
0000000000000149 R_X86_64_32 .debug_str+0x00000000000001f0
|
||||
0000000000000155 R_X86_64_32 .debug_str+0x00000000000000cd
|
||||
0000000000000160 R_X86_64_64 .text+0x0000000000000040
|
||||
0000000000000177 R_X86_64_32 .debug_str+0x00000000000001a1
|
||||
0000000000000180 R_X86_64_32 .debug_loclists+0x0000000000000014
|
||||
0000000000000184 R_X86_64_32 .debug_loclists+0x000000000000000c
|
||||
0000000000000197 R_X86_64_32 .debug_rnglists+0x0000000000000016
|
||||
00000000000001a0 R_X86_64_32 .debug_str+0x00000000000001f0
|
||||
00000000000001aa R_X86_64_32 .debug_loclists+0x000000000000003c
|
||||
00000000000001ae R_X86_64_32 .debug_loclists+0x0000000000000036
|
||||
00000000000001b4 R_X86_64_64 .text+0x00000000000000ba
|
||||
00000000000001c9 R_X86_64_32 .debug_str+0x00000000000001b3
|
||||
00000000000001d3 R_X86_64_32 .debug_loclists+0x0000000000000061
|
||||
00000000000001d7 R_X86_64_32 .debug_loclists+0x0000000000000053
|
||||
00000000000001dc R_X86_64_32 .debug_str+0x00000000000001f0
|
||||
00000000000001e6 R_X86_64_32 .debug_loclists+0x00000000000000ab
|
||||
00000000000001ea R_X86_64_32 .debug_loclists+0x0000000000000097
|
||||
00000000000001ef R_X86_64_32 .debug_str+0x00000000000000c8
|
||||
00000000000001f9 R_X86_64_32 .debug_loclists+0x0000000000000100
|
||||
00000000000001fd R_X86_64_32 .debug_loclists+0x00000000000000f8
|
||||
0000000000000202 R_X86_64_32 .debug_str+0x0000000000000168
|
||||
000000000000020c R_X86_64_32 .debug_loclists+0x0000000000000125
|
||||
0000000000000210 R_X86_64_32 .debug_loclists+0x000000000000011d
|
||||
0000000000000219 R_X86_64_64 .text+0x000000000000010b
|
||||
0000000000000222 R_X86_64_64 .text+0x000000000000010b
|
||||
000000000000023a R_X86_64_32 .debug_loclists+0x0000000000000154
|
||||
000000000000023e R_X86_64_32 .debug_loclists+0x0000000000000152
|
||||
0000000000000247 R_X86_64_32 .debug_loclists+0x000000000000015f
|
||||
000000000000024b R_X86_64_32 .debug_loclists+0x000000000000015d
|
||||
0000000000000256 R_X86_64_64 .text+0x0000000000000044
|
||||
000000000000025f R_X86_64_32 .debug_rnglists+0x000000000000000c
|
||||
000000000000026b R_X86_64_32 .debug_loclists+0x0000000000000169
|
||||
000000000000026f R_X86_64_32 .debug_loclists+0x0000000000000167
|
||||
0000000000000274 R_X86_64_32 .debug_rnglists+0x000000000000000c
|
||||
000000000000027d R_X86_64_32 .debug_loclists+0x0000000000000174
|
||||
0000000000000281 R_X86_64_32 .debug_loclists+0x0000000000000170
|
||||
000000000000028e R_X86_64_32 .debug_str+0x000000000000020a
|
||||
0000000000000295 R_X86_64_64 .text
|
||||
00000000000002ac R_X86_64_32 .debug_str+0x00000000000001a1
|
||||
00000000000002b5 R_X86_64_32 .debug_loclists+0x0000000000000187
|
||||
00000000000002b9 R_X86_64_32 .debug_loclists+0x0000000000000183
|
||||
00000000000002be R_X86_64_32 .debug_str+0x00000000000001f0
|
||||
00000000000002cd R_X86_64_32 .debug_str+0x0000000000000100
|
||||
00000000000002de R_X86_64_32 .debug_str+0x00000000000001d3
|
||||
00000000000002e9 R_X86_64_32 .debug_str+0x00000000000001b9
|
||||
00000000000002f9 R_X86_64_64 .text+0x0000000000000190
|
||||
0000000000000310 R_X86_64_32 .debug_loclists+0x000000000000019b
|
||||
0000000000000314 R_X86_64_32 .debug_loclists+0x0000000000000195
|
||||
000000000000031d R_X86_64_32 .debug_loclists+0x00000000000001b9
|
||||
0000000000000321 R_X86_64_32 .debug_loclists+0x00000000000001b3
|
||||
000000000000032a R_X86_64_32 .debug_loclists+0x00000000000001d8
|
||||
000000000000032e R_X86_64_32 .debug_loclists+0x00000000000001d2
|
||||
0000000000000337 R_X86_64_32 .debug_loclists+0x00000000000001f5
|
||||
000000000000033b R_X86_64_32 .debug_loclists+0x00000000000001f1
|
||||
0000000000000344 R_X86_64_32 .debug_loclists+0x0000000000000207
|
||||
0000000000000348 R_X86_64_32 .debug_loclists+0x0000000000000205
|
||||
0000000000000351 R_X86_64_64 .text+0x00000000000001c7
|
||||
000000000000035a R_X86_64_64 .text+0x00000000000001c7
|
||||
0000000000000373 R_X86_64_32 .debug_loclists+0x0000000000000211
|
||||
0000000000000377 R_X86_64_32 .debug_loclists+0x000000000000020f
|
||||
0000000000000380 R_X86_64_32 .debug_loclists+0x000000000000021b
|
||||
0000000000000384 R_X86_64_32 .debug_loclists+0x0000000000000219
|
||||
000000000000038d R_X86_64_32 .debug_loclists+0x0000000000000229
|
||||
0000000000000391 R_X86_64_32 .debug_loclists+0x0000000000000223
|
||||
000000000000039a R_X86_64_32 .debug_loclists+0x0000000000000245
|
||||
000000000000039e R_X86_64_32 .debug_loclists+0x0000000000000241
|
||||
00000000000003a7 R_X86_64_32 .debug_loclists+0x0000000000000257
|
||||
00000000000003ab R_X86_64_32 .debug_loclists+0x0000000000000255
|
||||
00000000000003b4 R_X86_64_64 .text+0x00000000000001dc
|
||||
00000000000003bd R_X86_64_64 .text+0x00000000000001dc
|
||||
00000000000003d6 R_X86_64_32 .debug_loclists+0x0000000000000261
|
||||
00000000000003da R_X86_64_32 .debug_loclists+0x000000000000025f
|
||||
00000000000003e3 R_X86_64_32 .debug_loclists+0x000000000000026b
|
||||
00000000000003e7 R_X86_64_32 .debug_loclists+0x0000000000000269
|
||||
00000000000003f0 R_X86_64_32 .debug_loclists+0x0000000000000277
|
||||
00000000000003f4 R_X86_64_32 .debug_loclists+0x0000000000000273
|
||||
00000000000003fd R_X86_64_32 .debug_loclists+0x000000000000028a
|
||||
0000000000000401 R_X86_64_32 .debug_loclists+0x0000000000000286
|
||||
000000000000040a R_X86_64_32 .debug_loclists+0x000000000000029c
|
||||
000000000000040e R_X86_64_32 .debug_loclists+0x000000000000029a
|
||||
0000000000000417 R_X86_64_64 .text+0x00000000000001ea
|
||||
0000000000000420 R_X86_64_64 .text+0x00000000000001ea
|
||||
0000000000000439 R_X86_64_32 .debug_loclists+0x00000000000002a6
|
||||
000000000000043d R_X86_64_32 .debug_loclists+0x00000000000002a4
|
||||
0000000000000446 R_X86_64_32 .debug_loclists+0x00000000000002b0
|
||||
000000000000044a R_X86_64_32 .debug_loclists+0x00000000000002ae
|
||||
0000000000000453 R_X86_64_32 .debug_loclists+0x00000000000002bc
|
||||
0000000000000457 R_X86_64_32 .debug_loclists+0x00000000000002b8
|
||||
0000000000000460 R_X86_64_32 .debug_loclists+0x00000000000002cf
|
||||
0000000000000464 R_X86_64_32 .debug_loclists+0x00000000000002cb
|
||||
000000000000046d R_X86_64_32 .debug_loclists+0x00000000000002e1
|
||||
0000000000000471 R_X86_64_32 .debug_loclists+0x00000000000002df
|
||||
000000000000047a R_X86_64_64 .text+0x00000000000001f7
|
||||
0000000000000483 R_X86_64_64 .text+0x00000000000001f7
|
||||
000000000000049c R_X86_64_32 .debug_loclists+0x00000000000002eb
|
||||
00000000000004a0 R_X86_64_32 .debug_loclists+0x00000000000002e9
|
||||
00000000000004a9 R_X86_64_32 .debug_loclists+0x00000000000002f5
|
||||
00000000000004ad R_X86_64_32 .debug_loclists+0x00000000000002f3
|
||||
00000000000004b6 R_X86_64_32 .debug_loclists+0x0000000000000301
|
||||
00000000000004ba R_X86_64_32 .debug_loclists+0x00000000000002fd
|
||||
00000000000004c3 R_X86_64_32 .debug_loclists+0x0000000000000314
|
||||
00000000000004c7 R_X86_64_32 .debug_loclists+0x0000000000000310
|
||||
00000000000004d0 R_X86_64_32 .debug_loclists+0x0000000000000326
|
||||
00000000000004d4 R_X86_64_32 .debug_loclists+0x0000000000000324
|
||||
00000000000004dd R_X86_64_64 .text+0x0000000000000204
|
||||
00000000000004e6 R_X86_64_64 .text+0x0000000000000204
|
||||
00000000000004ff R_X86_64_32 .debug_loclists+0x0000000000000330
|
||||
0000000000000503 R_X86_64_32 .debug_loclists+0x000000000000032e
|
||||
000000000000050c R_X86_64_32 .debug_loclists+0x000000000000033a
|
||||
0000000000000510 R_X86_64_32 .debug_loclists+0x0000000000000338
|
||||
0000000000000519 R_X86_64_32 .debug_loclists+0x0000000000000344
|
||||
000000000000051d R_X86_64_32 .debug_loclists+0x0000000000000342
|
||||
0000000000000526 R_X86_64_32 .debug_loclists+0x0000000000000350
|
||||
000000000000052a R_X86_64_32 .debug_loclists+0x000000000000034c
|
||||
0000000000000533 R_X86_64_32 .debug_loclists+0x0000000000000362
|
||||
0000000000000537 R_X86_64_32 .debug_loclists+0x0000000000000360
|
||||
0000000000000540 R_X86_64_64 .text+0x0000000000000211
|
||||
0000000000000549 R_X86_64_64 .text+0x0000000000000211
|
||||
0000000000000562 R_X86_64_32 .debug_loclists+0x000000000000036e
|
||||
0000000000000566 R_X86_64_32 .debug_loclists+0x000000000000036c
|
||||
000000000000056f R_X86_64_32 .debug_loclists+0x0000000000000378
|
||||
0000000000000573 R_X86_64_32 .debug_loclists+0x0000000000000376
|
||||
000000000000057c R_X86_64_32 .debug_loclists+0x0000000000000384
|
||||
0000000000000580 R_X86_64_32 .debug_loclists+0x0000000000000380
|
||||
0000000000000589 R_X86_64_32 .debug_loclists+0x0000000000000397
|
||||
000000000000058d R_X86_64_32 .debug_loclists+0x0000000000000393
|
||||
0000000000000596 R_X86_64_32 .debug_loclists+0x00000000000003a9
|
||||
000000000000059a R_X86_64_32 .debug_loclists+0x00000000000003a7
|
||||
00000000000005a3 R_X86_64_64 .text+0x000000000000021e
|
||||
00000000000005ac R_X86_64_64 .text+0x000000000000021e
|
||||
00000000000005c5 R_X86_64_32 .debug_loclists+0x00000000000003b5
|
||||
00000000000005c9 R_X86_64_32 .debug_loclists+0x00000000000003b3
|
||||
00000000000005d2 R_X86_64_32 .debug_loclists+0x00000000000003bf
|
||||
00000000000005d6 R_X86_64_32 .debug_loclists+0x00000000000003bd
|
||||
00000000000005df R_X86_64_32 .debug_loclists+0x00000000000003cb
|
||||
00000000000005e3 R_X86_64_32 .debug_loclists+0x00000000000003c7
|
||||
00000000000005ec R_X86_64_32 .debug_loclists+0x00000000000003de
|
||||
00000000000005f0 R_X86_64_32 .debug_loclists+0x00000000000003da
|
||||
00000000000005f9 R_X86_64_32 .debug_loclists+0x00000000000003f0
|
||||
00000000000005fd R_X86_64_32 .debug_loclists+0x00000000000003ee
|
||||
0000000000000606 R_X86_64_64 .text+0x000000000000022b
|
||||
000000000000060f R_X86_64_64 .text+0x000000000000022b
|
||||
0000000000000628 R_X86_64_32 .debug_loclists+0x00000000000003fc
|
||||
000000000000062c R_X86_64_32 .debug_loclists+0x00000000000003fa
|
||||
0000000000000635 R_X86_64_32 .debug_loclists+0x0000000000000406
|
||||
0000000000000639 R_X86_64_32 .debug_loclists+0x0000000000000404
|
||||
0000000000000642 R_X86_64_32 .debug_loclists+0x0000000000000414
|
||||
0000000000000646 R_X86_64_32 .debug_loclists+0x000000000000040e
|
||||
000000000000064f R_X86_64_32 .debug_loclists+0x0000000000000430
|
||||
0000000000000653 R_X86_64_32 .debug_loclists+0x000000000000042c
|
||||
000000000000065c R_X86_64_32 .debug_loclists+0x0000000000000443
|
||||
0000000000000660 R_X86_64_32 .debug_loclists+0x000000000000043f
|
||||
0000000000000665 R_X86_64_64 .text+0x000000000000024e
|
||||
0000000000000683 R_X86_64_64 .text+0x000000000000026c
|
||||
0000000000000697 R_X86_64_64 .text+0x000000000000029e
|
||||
00000000000006a8 R_X86_64_64 .text+0x00000000000002ca
|
||||
00000000000006b9 R_X86_64_64 .text+0x00000000000002f1
|
||||
00000000000006d0 R_X86_64_64 .text+0x0000000000000313
|
||||
00000000000006e7 R_X86_64_64 .text+0x0000000000000333
|
||||
00000000000006fe R_X86_64_64 .text+0x0000000000000350
|
||||
0000000000000715 R_X86_64_64 .text+0x000000000000036e
|
||||
000000000000072e R_X86_64_64 .text+0x0000000000000391
|
||||
|
||||
|
||||
RELOCATION RECORDS FOR [.debug_aranges]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000006 R_X86_64_32 .debug_info
|
||||
0000000000000010 R_X86_64_64 .text
|
||||
|
||||
|
||||
RELOCATION RECORDS FOR [.debug_line]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000022 R_X86_64_32 .debug_line_str+0x000000000000004f
|
||||
0000000000000026 R_X86_64_32 .debug_line_str+0x000000000000006b
|
||||
0000000000000030 R_X86_64_32 .debug_line_str+0x000000000000008f
|
||||
0000000000000035 R_X86_64_32 .debug_line_str+0x00000000000000c2
|
||||
000000000000003a R_X86_64_32 .debug_line_str+0x00000000000000d1
|
||||
0000000000000044 R_X86_64_64 .text
|
||||
|
||||
|
||||
RELOCATION RECORDS FOR [.eh_frame]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000020 R_X86_64_PC32 .text
|
||||
0000000000000034 R_X86_64_PC32 .text+0x0000000000000040
|
||||
0000000000000048 R_X86_64_PC32 .text+0x0000000000000190
|
||||
|
||||
|
||||
3
tests/golden-files/results/pdf2txt-standard_pdf
Normal file
3
tests/golden-files/results/pdf2txt-standard_pdf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Cover Page
|
||||
|
||||
#
|
||||
1
tests/golden-files/results/perl_syntax-perl_pl
Normal file
1
tests/golden-files/results/perl_syntax-perl_pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
./input/perl.pl syntax OK
|
||||
2
tests/golden-files/results/perltidy-perl_pl
Normal file
2
tests/golden-files/results/perltidy-perl_pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(B[m[38;2;153;153;153m[48;2;32;32;32m[3m#!/usr/bin/perl(B[m[38;2;255;255;255m[48;2;32;32;32m (B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;106;184;37m[48;2;32;32;32m[1mprint(B[m[38;2;208;208;208m[48;2;32;32;32m (B[m[38;2;237;157;19m[48;2;32;32;32m"Hello, world!\n"(B[m[38;2;208;208;208m[48;2;32;32;32m;(B[m
|
||||
1
tests/golden-files/results/php8_syntax-root_php
Normal file
1
tests/golden-files/results/php8_syntax-root_php
Normal file
|
|
@ -0,0 +1 @@
|
|||
No syntax errors detected in ./input/root.php
|
||||
8
tests/golden-files/results/pil-circle_bmp
Normal file
8
tests/golden-files/results/pil-circle_bmp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil-circle_gif
Normal file
8
tests/golden-files/results/pil-circle_gif
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil-circle_jpg
Normal file
8
tests/golden-files/results/pil-circle_jpg
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;7;7;7m▀[m[38;2;7;7;7m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;1;1;1m[48;2;0;0;0m▀[m[38;2;1;1;1m[48;2;1;1;1m▀[m[38;2;1;1;1m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;251;251;251m▀[m[38;2;2;2;2m[48;2;253;253;253m▀[m[38;2;1;1;1m[48;2;254;254;254m▀[m[38;2;1;1;1m[48;2;255;255;255m▀[m[38;2;1;1;1m[48;2;0;0;0m▀▀[m[38;2;3;3;3m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;1;1;1m▀[m[38;2;0;0;0m[48;2;2;2;2m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;4;4;4m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;2;2;2m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;251;251;251m▀[m[38;2;255;255;255m[48;2;249;249;249m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;247;247;247m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;249;249;249m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;1;1;1m[48;2;249;249;249m▀[m[38;2;0;0;0m[48;2;1;1;1m▀[m[38;2;2;2;2m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;2;2;2m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;2;2;2m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;252;252;252m▀[m[38;2;248;248;248m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;247;247;247m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;253;253;253m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;251;251;251m▀[m[38;2;255;255;255m[48;2;248;248;248m▀[m[38;2;1;1;1m[48;2;255;255;255m▀[m[38;2;2;2;2m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;4;4;4m[48;2;0;0;0m▀[m[38;2;253;253;253m[48;2;253;253;253m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;253;253;253m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;251;251;251m[48;2;255;255;255m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;2;2;2m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;4;4;4m[48;2;0;0;0m▀[m[38;2;249;249;249m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;251;251;251m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;253;253;253m[48;2;253;253;253m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;250;250;250m[48;2;253;253;253m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;248;248;248m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;252;252;252m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;1;1;1m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;2;2;2m[48;2;1;1;1m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;250;250;250m[48;2;253;253;253m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;249;249;249m[48;2;253;253;253m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;246;246;246m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;253;253;253m[48;2;0;0;0m▀[m[38;2;2;2;2m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;1;1;1m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;6;6;6m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;252;252;252m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;252;252;252m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;255;255;255m▀[m[38;2;253;253;253m[48;2;255;255;255m▀[m[38;2;249;249;249m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;252;252;252m▀[m[38;2;251;251;251m[48;2;1;1;1m▀[m[38;2;7;7;7m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;2;2;2m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;5;5;5m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;2;2;2m[48;2;1;1;1m▀[m[38;2;0;0;0m[48;2;2;2;2m▀[m[38;2;254;254;254m[48;2;1;1;1m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;248;248;248m[48;2;4;4;4m▀[m[38;2;252;252;252m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;251;251;251m[48;2;1;1;1m▀[m[38;2;0;0;0m[48;2;1;1;1m▀[m[38;2;1;1;1m[48;2;1;1;1m▀[m[38;2;0;0;0m[48;2;2;2;2m▀[m[38;2;1;1;1m[48;2;0;0;0m▀[m[38;2;3;3;3m[48;2;0;0;0m▀[m
|
||||
8
tests/golden-files/results/pil-circle_png
Normal file
8
tests/golden-files/results/pil-circle_png
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil-circle_ppm
Normal file
8
tests/golden-files/results/pil-circle_ppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil-circle_tga
Normal file
8
tests/golden-files/results/pil-circle_tga
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil-circle_tiff
Normal file
8
tests/golden-files/results/pil-circle_tiff
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀▀[m[38;2;0;0;0m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;255;255;255m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀[m[38;2;255;255;255m[48;2;254;254;254m▀[m[38;2;254;254;254m[48;2;255;255;255m▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m[38;2;255;255;255m[48;2;0;0;0m▀[m[38;2;254;254;254m[48;2;0;0;0m▀[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀[m
|
||||
8
tests/golden-files/results/pil_half-circle_png
Normal file
8
tests/golden-files/results/pil_half-circle_png
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀(B[m[38;2;0;0;0m[48;2;255;255;255m▀▀▀▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀(B[m[38;2;0;0;0m[48;2;255;255;255m▀(B[m[38;2;254;254;254m[48;2;255;255;255m▀▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀(B[m[38;2;254;254;254m[48;2;255;255;255m▀▀(B[m[38;2;0;0;0m[48;2;254;254;254m▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀(B[m[38;2;254;254;254m[48;2;254;254;254m▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀(B[m[38;2;254;254;254m[48;2;254;254;254m▀(B[m[38;2;0;0;0m[48;2;255;255;255m▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀▀▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;254;254;254m[48;2;254;254;254m▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀▀▀(B[m[38;2;255;255;255m[48;2;254;254;254m▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m▀(B[m[38;2;254;254;254m[48;2;254;254;254m▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀▀▀▀▀(B[m[38;2;255;255;255m[48;2;254;254;254m▀(B[m[38;2;255;255;255m[48;2;0;0;0m▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀(B[m[38;2;254;254;254m[48;2;255;255;255m▀(B[m[38;2;255;255;255m[48;2;254;254;254m▀(B[m[38;2;255;255;255m[48;2;255;255;255m▀▀▀▀▀▀(B[m[38;2;255;255;255m[48;2;254;254;254m▀(B[m[38;2;254;254;254m[48;2;255;255;255m▀(B[m[38;2;255;255;255m[48;2;0;0;0m▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀(B[m[38;2;255;255;255m[48;2;0;0;0m▀(B[m[38;2;254;254;254m[48;2;0;0;0m▀(B[m[38;2;255;255;255m[48;2;0;0;0m▀▀▀▀(B[m[38;2;0;0;0m[48;2;0;0;0m▀▀▀▀▀(B[m
|
||||
0
tests/golden-files/results/pycodestyle-hi3_py
Normal file
0
tests/golden-files/results/pycodestyle-hi3_py
Normal file
0
tests/golden-files/results/pyflakes-hi3_py
Normal file
0
tests/golden-files/results/pyflakes-hi3_py
Normal file
1
tests/golden-files/results/pylint-hi3_py
Normal file
1
tests/golden-files/results/pylint-hi3_py
Normal file
|
|
@ -0,0 +1 @@
|
|||
[m
|
||||
3
tests/golden-files/results/python_gut-hi3_py
Normal file
3
tests/golden-files/results/python_gut-hi3_py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;110;191;38m[48;2;32;32;32m[1mdef[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;113;173;255m[48;2;32;32;32mhi[m[38;2;208;208;208m[48;2;32;32;32m():[m
|
||||
1
tests/golden-files/results/python_mccabe-hi3_py
Normal file
1
tests/golden-files/results/python_mccabe-hi3_py
Normal file
|
|
@ -0,0 +1 @@
|
|||
3:0: 'hi' 1
|
||||
4
tests/golden-files/results/python_modulefinder-hi3_py
Normal file
4
tests/golden-files/results/python_modulefinder-hi3_py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
Name File
|
||||
---- ----
|
||||
m __main__ ./input/hi3.py
|
||||
0
tests/golden-files/results/python_syntax-hi3_py
Normal file
0
tests/golden-files/results/python_syntax-hi3_py
Normal file
1
tests/golden-files/results/python_unittests-hi3_py
Normal file
1
tests/golden-files/results/python_unittests-hi3_py
Normal file
|
|
@ -0,0 +1 @@
|
|||
No tests.
|
||||
7
tests/golden-files/results/python_unittests-hi3_test_py
Normal file
7
tests/golden-files/results/python_unittests-hi3_test_py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
hi
|
||||
|
||||
.
|
||||
----------------------------------------------------------------------
|
||||
Ran 1 test in 0.000s
|
||||
|
||||
OK
|
||||
2
tests/golden-files/results/python_unittests-test_foo_py
Normal file
2
tests/golden-files/results/python_unittests-test_foo_py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
tested foo
|
||||
|
||||
338
tests/golden-files/results/readelf-rotatingtree_o
Normal file
338
tests/golden-files/results/readelf-rotatingtree_o
Normal file
|
|
@ -0,0 +1,338 @@
|
|||
ELF Header:
|
||||
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
|
||||
Class: ELF64
|
||||
Data: 2's complement, little endian
|
||||
Version: 1 (current)
|
||||
OS/ABI: UNIX - System V
|
||||
ABI Version: 0
|
||||
Type: REL (Relocatable file)
|
||||
Machine: Advanced Micro Devices X86-64
|
||||
Version: 0x1
|
||||
Entry point address: 0x0
|
||||
Start of program headers: 0 (bytes into file)
|
||||
Start of section headers: 12504 (bytes into file)
|
||||
Flags: 0x0
|
||||
Size of this header: 64 (bytes)
|
||||
Size of program headers: 0 (bytes)
|
||||
Number of program headers: 0
|
||||
Size of section headers: 64 (bytes)
|
||||
Number of section headers: 24
|
||||
Section header string table index: 23
|
||||
|
||||
Section Headers:
|
||||
[Nr] Name Type Address Offset
|
||||
Size EntSize Flags Link Info Align
|
||||
[ 0] NULL 0000000000000000 00000000
|
||||
0000000000000000 0000000000000000 0 0 0
|
||||
[ 1] .text PROGBITS 0000000000000000 00000040
|
||||
00000000000003b7 0000000000000000 AX 0 0 16
|
||||
[ 2] .rela.text RELA 0000000000000000 00001c08
|
||||
00000000000000f0 0000000000000018 I 21 1 8
|
||||
[ 3] .data PROGBITS 0000000000000000 000003f8
|
||||
0000000000000004 0000000000000000 WA 0 0 4
|
||||
[ 4] .bss NOBITS 0000000000000000 000003fc
|
||||
0000000000000004 0000000000000000 WA 0 0 4
|
||||
[ 5] .debug_info PROGBITS 0000000000000000 000003fc
|
||||
0000000000000747 0000000000000000 0 0 1
|
||||
[ 6] .rela.debug_info RELA 0000000000000000 00001cf8
|
||||
00000000000011e8 0000000000000018 I 21 5 8
|
||||
[ 7] .debug_abbrev PROGBITS 0000000000000000 00000b43
|
||||
0000000000000232 0000000000000000 0 0 1
|
||||
[ 8] .debug_loclists PROGBITS 0000000000000000 00000d75
|
||||
0000000000000454 0000000000000000 0 0 1
|
||||
[ 9] .debug_aranges PROGBITS 0000000000000000 000011c9
|
||||
0000000000000030 0000000000000000 0 0 1
|
||||
[10] .rela.debug_[...] RELA 0000000000000000 00002ee0
|
||||
0000000000000030 0000000000000018 I 21 9 8
|
||||
[11] .debug_rnglists PROGBITS 0000000000000000 000011f9
|
||||
000000000000001f 0000000000000000 0 0 1
|
||||
[12] .debug_line PROGBITS 0000000000000000 00001218
|
||||
0000000000000420 0000000000000000 0 0 1
|
||||
[13] .rela.debug_line RELA 0000000000000000 00002f10
|
||||
0000000000000090 0000000000000018 I 21 12 8
|
||||
[14] .debug_str PROGBITS 0000000000000000 00001638
|
||||
000000000000021b 0000000000000001 MS 0 0 1
|
||||
[15] .debug_line_str PROGBITS 0000000000000000 00001853
|
||||
00000000000000e0 0000000000000001 MS 0 0 1
|
||||
[16] .comment PROGBITS 0000000000000000 00001933
|
||||
0000000000000026 0000000000000001 MS 0 0 1
|
||||
[17] .note.GNU-stack PROGBITS 0000000000000000 00001959
|
||||
0000000000000000 0000000000000000 0 0 1
|
||||
[18] .note.gnu.pr[...] NOTE 0000000000000000 00001960
|
||||
0000000000000020 0000000000000000 A 0 0 8
|
||||
[19] .eh_frame PROGBITS 0000000000000000 00001980
|
||||
0000000000000090 0000000000000000 A 0 0 8
|
||||
[20] .rela.eh_frame RELA 0000000000000000 00002fa0
|
||||
0000000000000048 0000000000000018 I 21 19 8
|
||||
[21] .symtab SYMTAB 0000000000000000 00001a10
|
||||
0000000000000198 0000000000000018 22 14 8
|
||||
[22] .strtab STRTAB 0000000000000000 00001ba8
|
||||
000000000000005f 0000000000000000 0 0 1
|
||||
[23] .shstrtab STRTAB 0000000000000000 00002fe8
|
||||
00000000000000eb 0000000000000000 0 0 1
|
||||
Key to Flags:
|
||||
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
|
||||
L (link order), O (extra OS processing required), G (group), T (TLS),
|
||||
C (compressed), x (unknown), o (OS specific), E (exclude),
|
||||
D (mbind), l (large), p (processor specific)
|
||||
|
||||
There are no section groups in this file.
|
||||
|
||||
There are no program headers in this file.
|
||||
|
||||
There is no dynamic section in this file.
|
||||
|
||||
Relocation section '.rela.text' at offset 0x1c08 contains 10 entries:
|
||||
Offset Info Type Sym. Value Sym. Name + Addend
|
||||
000000000046 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4
|
||||
000000000054 000300000002 R_X86_64_PC32 0000000000000000 .data - 8
|
||||
00000000005e 000300000002 R_X86_64_PC32 0000000000000000 .data - 4
|
||||
00000000006f 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4
|
||||
0000000000aa 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4
|
||||
0000000000b6 000300000002 R_X86_64_PC32 0000000000000000 .data - 4
|
||||
0000000000d0 000300000002 R_X86_64_PC32 0000000000000000 .data - 4
|
||||
000000000159 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4
|
||||
000000000169 000300000002 R_X86_64_PC32 0000000000000000 .data - 4
|
||||
00000000024a 001000000004 R_X86_64_PLT32 0000000000000190 RotatingTree_Enum - 4
|
||||
|
||||
Relocation section '.rela.debug_info' at offset 0x1cf8 contains 191 entries:
|
||||
Offset Info Type Sym. Value Sym. Name + Addend
|
||||
000000000008 00080000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0
|
||||
00000000000d 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 0
|
||||
000000000012 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 0
|
||||
000000000016 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 33
|
||||
00000000001a 000200000001 R_X86_64_64 0000000000000000 .text + 0
|
||||
00000000002a 000b0000000a R_X86_64_32 0000000000000000 .debug_line + 0
|
||||
000000000031 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 16f
|
||||
00000000003f 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f5
|
||||
000000000046 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1c0
|
||||
00000000004d 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 122
|
||||
000000000054 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 143
|
||||
00000000005b 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a6
|
||||
000000000062 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1fe
|
||||
000000000069 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1e6
|
||||
000000000072 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1ce
|
||||
000000000079 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 10b
|
||||
00000000007e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 191
|
||||
000000000089 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 181
|
||||
0000000000a3 000c0000000a R_X86_64_32 0000000000000000 .debug_str + de
|
||||
0000000000ae 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 13d
|
||||
0000000000ba 000c0000000a R_X86_64_32 0000000000000000 .debug_str + e3
|
||||
0000000000e3 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 130
|
||||
0000000000ee 000300000001 R_X86_64_64 0000000000000000 .data + 0
|
||||
0000000000f7 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1d8
|
||||
000000000102 000400000001 R_X86_64_64 0000000000000000 .bss + 0
|
||||
00000000010b 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 156
|
||||
00000000011c 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1
|
||||
000000000127 000c0000000a R_X86_64_32 0000000000000000 .debug_str + f9
|
||||
00000000013e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b9
|
||||
000000000149 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0
|
||||
000000000155 000c0000000a R_X86_64_32 0000000000000000 .debug_str + cd
|
||||
000000000160 000200000001 R_X86_64_64 0000000000000000 .text + 40
|
||||
000000000177 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1
|
||||
000000000180 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 14
|
||||
000000000184 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + c
|
||||
000000000197 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + 16
|
||||
0000000001a0 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0
|
||||
0000000001aa 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3c
|
||||
0000000001ae 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36
|
||||
0000000001b4 000200000001 R_X86_64_64 0000000000000000 .text + ba
|
||||
0000000001c9 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b3
|
||||
0000000001d3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 61
|
||||
0000000001d7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 53
|
||||
0000000001dc 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0
|
||||
0000000001e6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + ab
|
||||
0000000001ea 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 97
|
||||
0000000001ef 000c0000000a R_X86_64_32 0000000000000000 .debug_str + c8
|
||||
0000000001f9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 100
|
||||
0000000001fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + f8
|
||||
000000000202 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 168
|
||||
00000000020c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 125
|
||||
000000000210 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 11d
|
||||
000000000219 000200000001 R_X86_64_64 0000000000000000 .text + 10b
|
||||
000000000222 000200000001 R_X86_64_64 0000000000000000 .text + 10b
|
||||
00000000023a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 154
|
||||
00000000023e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 152
|
||||
000000000247 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 15f
|
||||
00000000024b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 15d
|
||||
000000000256 000200000001 R_X86_64_64 0000000000000000 .text + 44
|
||||
00000000025f 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + c
|
||||
00000000026b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 169
|
||||
00000000026f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 167
|
||||
000000000274 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + c
|
||||
00000000027d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 174
|
||||
000000000281 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 170
|
||||
00000000028e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 20a
|
||||
000000000295 000200000001 R_X86_64_64 0000000000000000 .text + 0
|
||||
0000000002ac 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1
|
||||
0000000002b5 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 187
|
||||
0000000002b9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 183
|
||||
0000000002be 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0
|
||||
0000000002cd 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 100
|
||||
0000000002de 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1d3
|
||||
0000000002e9 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b9
|
||||
0000000002f9 000200000001 R_X86_64_64 0000000000000000 .text + 190
|
||||
000000000310 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 19b
|
||||
000000000314 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 195
|
||||
00000000031d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1b9
|
||||
000000000321 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1b3
|
||||
00000000032a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1d8
|
||||
00000000032e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1d2
|
||||
000000000337 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1f5
|
||||
00000000033b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1f1
|
||||
000000000344 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 207
|
||||
000000000348 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 205
|
||||
000000000351 000200000001 R_X86_64_64 0000000000000000 .text + 1c7
|
||||
00000000035a 000200000001 R_X86_64_64 0000000000000000 .text + 1c7
|
||||
000000000373 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 211
|
||||
000000000377 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 20f
|
||||
000000000380 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 21b
|
||||
000000000384 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 219
|
||||
00000000038d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 229
|
||||
000000000391 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 223
|
||||
00000000039a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 245
|
||||
00000000039e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 241
|
||||
0000000003a7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 257
|
||||
0000000003ab 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 255
|
||||
0000000003b4 000200000001 R_X86_64_64 0000000000000000 .text + 1dc
|
||||
0000000003bd 000200000001 R_X86_64_64 0000000000000000 .text + 1dc
|
||||
0000000003d6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 261
|
||||
0000000003da 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 25f
|
||||
0000000003e3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 26b
|
||||
0000000003e7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 269
|
||||
0000000003f0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 277
|
||||
0000000003f4 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 273
|
||||
0000000003fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 28a
|
||||
000000000401 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 286
|
||||
00000000040a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 29c
|
||||
00000000040e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 29a
|
||||
000000000417 000200000001 R_X86_64_64 0000000000000000 .text + 1ea
|
||||
000000000420 000200000001 R_X86_64_64 0000000000000000 .text + 1ea
|
||||
000000000439 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2a6
|
||||
00000000043d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2a4
|
||||
000000000446 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2b0
|
||||
00000000044a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2ae
|
||||
000000000453 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2bc
|
||||
000000000457 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2b8
|
||||
000000000460 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2cf
|
||||
000000000464 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2cb
|
||||
00000000046d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2e1
|
||||
000000000471 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2df
|
||||
00000000047a 000200000001 R_X86_64_64 0000000000000000 .text + 1f7
|
||||
000000000483 000200000001 R_X86_64_64 0000000000000000 .text + 1f7
|
||||
00000000049c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2eb
|
||||
0000000004a0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2e9
|
||||
0000000004a9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2f5
|
||||
0000000004ad 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2f3
|
||||
0000000004b6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 301
|
||||
0000000004ba 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2fd
|
||||
0000000004c3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 314
|
||||
0000000004c7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 310
|
||||
0000000004d0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 326
|
||||
0000000004d4 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 324
|
||||
0000000004dd 000200000001 R_X86_64_64 0000000000000000 .text + 204
|
||||
0000000004e6 000200000001 R_X86_64_64 0000000000000000 .text + 204
|
||||
0000000004ff 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 330
|
||||
000000000503 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 32e
|
||||
00000000050c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 33a
|
||||
000000000510 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 338
|
||||
000000000519 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 344
|
||||
00000000051d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 342
|
||||
000000000526 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 350
|
||||
00000000052a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 34c
|
||||
000000000533 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 362
|
||||
000000000537 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 360
|
||||
000000000540 000200000001 R_X86_64_64 0000000000000000 .text + 211
|
||||
000000000549 000200000001 R_X86_64_64 0000000000000000 .text + 211
|
||||
000000000562 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36e
|
||||
000000000566 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36c
|
||||
00000000056f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 378
|
||||
000000000573 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 376
|
||||
00000000057c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 384
|
||||
000000000580 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 380
|
||||
000000000589 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 397
|
||||
00000000058d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 393
|
||||
000000000596 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3a9
|
||||
00000000059a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3a7
|
||||
0000000005a3 000200000001 R_X86_64_64 0000000000000000 .text + 21e
|
||||
0000000005ac 000200000001 R_X86_64_64 0000000000000000 .text + 21e
|
||||
0000000005c5 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3b5
|
||||
0000000005c9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3b3
|
||||
0000000005d2 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3bf
|
||||
0000000005d6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3bd
|
||||
0000000005df 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3cb
|
||||
0000000005e3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3c7
|
||||
0000000005ec 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3de
|
||||
0000000005f0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3da
|
||||
0000000005f9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3f0
|
||||
0000000005fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3ee
|
||||
000000000606 000200000001 R_X86_64_64 0000000000000000 .text + 22b
|
||||
00000000060f 000200000001 R_X86_64_64 0000000000000000 .text + 22b
|
||||
000000000628 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3fc
|
||||
00000000062c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3fa
|
||||
000000000635 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 406
|
||||
000000000639 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 404
|
||||
000000000642 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 414
|
||||
000000000646 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 40e
|
||||
00000000064f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 430
|
||||
000000000653 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 42c
|
||||
00000000065c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 443
|
||||
000000000660 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 43f
|
||||
000000000665 000200000001 R_X86_64_64 0000000000000000 .text + 24e
|
||||
000000000683 000200000001 R_X86_64_64 0000000000000000 .text + 26c
|
||||
000000000697 000200000001 R_X86_64_64 0000000000000000 .text + 29e
|
||||
0000000006a8 000200000001 R_X86_64_64 0000000000000000 .text + 2ca
|
||||
0000000006b9 000200000001 R_X86_64_64 0000000000000000 .text + 2f1
|
||||
0000000006d0 000200000001 R_X86_64_64 0000000000000000 .text + 313
|
||||
0000000006e7 000200000001 R_X86_64_64 0000000000000000 .text + 333
|
||||
0000000006fe 000200000001 R_X86_64_64 0000000000000000 .text + 350
|
||||
000000000715 000200000001 R_X86_64_64 0000000000000000 .text + 36e
|
||||
00000000072e 000200000001 R_X86_64_64 0000000000000000 .text + 391
|
||||
|
||||
Relocation section '.rela.debug_aranges' at offset 0x2ee0 contains 2 entries:
|
||||
Offset Info Type Sym. Value Sym. Name + Addend
|
||||
000000000006 00070000000a R_X86_64_32 0000000000000000 .debug_info + 0
|
||||
000000000010 000200000001 R_X86_64_64 0000000000000000 .text + 0
|
||||
|
||||
Relocation section '.rela.debug_line' at offset 0x2f10 contains 6 entries:
|
||||
Offset Info Type Sym. Value Sym. Name + Addend
|
||||
000000000022 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 4f
|
||||
000000000026 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 6b
|
||||
000000000030 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 8f
|
||||
000000000035 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + c2
|
||||
00000000003a 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + d1
|
||||
000000000044 000200000001 R_X86_64_64 0000000000000000 .text + 0
|
||||
|
||||
Relocation section '.rela.eh_frame' at offset 0x2fa0 contains 3 entries:
|
||||
Offset Info Type Sym. Value Sym. Name + Addend
|
||||
000000000020 000200000002 R_X86_64_PC32 0000000000000000 .text + 0
|
||||
000000000034 000200000002 R_X86_64_PC32 0000000000000000 .text + 40
|
||||
000000000048 000200000002 R_X86_64_PC32 0000000000000000 .text + 190
|
||||
No processor specific unwind information to decode
|
||||
|
||||
Symbol table '.symtab' contains 17 entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
1: 0000000000000000 0 FILE LOCAL DEFAULT ABS rotatingtree.c
|
||||
2: 0000000000000000 0 SECTION LOCAL DEFAULT 1 .text
|
||||
3: 0000000000000000 0 SECTION LOCAL DEFAULT 3 .data
|
||||
4: 0000000000000000 0 SECTION LOCAL DEFAULT 4 .bss
|
||||
5: 0000000000000000 4 OBJECT LOCAL DEFAULT 4 random_stream
|
||||
6: 0000000000000000 4 OBJECT LOCAL DEFAULT 3 random_value
|
||||
7: 0000000000000000 0 SECTION LOCAL DEFAULT 5 .debug_info
|
||||
8: 0000000000000000 0 SECTION LOCAL DEFAULT 7 .debug_abbrev
|
||||
9: 0000000000000000 0 SECTION LOCAL DEFAULT 8 .debug_loclists
|
||||
10: 0000000000000000 0 SECTION LOCAL DEFAULT 11 .debug_rnglists
|
||||
11: 0000000000000000 0 SECTION LOCAL DEFAULT 12 .debug_line
|
||||
12: 0000000000000000 0 SECTION LOCAL DEFAULT 14 .debug_str
|
||||
13: 0000000000000000 0 SECTION LOCAL DEFAULT 15 .debug_line_str
|
||||
14: 0000000000000000 51 FUNC GLOBAL HIDDEN 1 RotatingTree_Add
|
||||
15: 0000000000000040 332 FUNC GLOBAL HIDDEN 1 RotatingTree_Get
|
||||
16: 0000000000000190 551 FUNC GLOBAL HIDDEN 1 RotatingTree_Enum
|
||||
|
||||
No version information found in this file.
|
||||
|
||||
Displaying notes found in: .note.gnu.property
|
||||
Owner Data size Description
|
||||
GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
|
||||
Properties: x86 feature: IBT, SHSTK
|
||||
4
tests/golden-files/results/zipinfo-hi_zip
Normal file
4
tests/golden-files/results/zipinfo-hi_zip
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Archive: ./input/hi.zip
|
||||
Zip file size: 187 bytes, number of entries: 1
|
||||
-rw-rw-r-- 3.0 unx 27 tx stor 16-Feb-09 21:50 hi.py
|
||||
1 file, 27 bytes uncompressed, 27 bytes compressed: 0.0%
|
||||
0
tests/golden-files/summary-initial
Normal file
0
tests/golden-files/summary-initial
Normal file
1
tests/golden-files/summary-one-element
Normal file
1
tests/golden-files/summary-one-element
Normal file
|
|
@ -0,0 +1 @@
|
|||
(B[m[38;2;0;0;0m[48;2;255;255;255mfoo[0m
|
||||
1
tests/golden-files/summary-two-element
Normal file
1
tests/golden-files/summary-two-element
Normal file
|
|
@ -0,0 +1 @@
|
|||
(B[m[38;2;0;0;0m[48;2;255;255;255mfoo(B[m[38;2;255;255;255m[48;2;70;70;70mbar[0m
|
||||
60
tests/golden-files/window-orientation
Normal file
60
tests/golden-files/window-orientation
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┏━━━━━━━━━━━━━━ Summary of project ━━━━━━━━━━━━━━┓[m[38;2;100;100;100m[48;2;0;0;0m┌──────────────────────[m[38;2;255;255;255m[48;2;0;0;0m Log [m[38;2;100;100;100m[48;2;0;0;0m─────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛[m[38;2;100;100;100m[48;2;0;0;0m└────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m┌──────────────────────────────────────────────────────────────────────────────────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0mNothing selected [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m└──────────────────────────────────────────────────────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
60
tests/golden-files/window-orientation-original
Normal file
60
tests/golden-files/window-orientation-original
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[m[38;2;255;255;255m[48;2;0;0;0m┏━━━━━━━━ Summary of project ━━━━━━━━┓[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────────────────────────────────────────────────┐[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0mNothing selected [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┃ ┃[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m┌────────────────[m[38;2;255;255;255m[48;2;0;0;0m Log [m[38;2;100;100;100m[48;2;0;0;0m───────────────┐│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m││[m[38;2;255;255;255m[48;2;0;0;0m [m[38;2;100;100;100m[48;2;0;0;0m│[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;100;100;100m[48;2;0;0;0m└────────────────────────────────────┘└────────────────────────────────────────────────────────────┘[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76ms[m[38;2;255;255;255m[48;2;76;76;76mort [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mpen [m
|
||||
78
tests/golden.py
Normal file
78
tests/golden.py
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
|
||||
import optparse
|
||||
import os.path
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
||||
def _accept_actual(failed):
|
||||
for actual_str, golden_path in failed:
|
||||
with open(golden_path, "wb") as golden_file:
|
||||
golden_file.write(actual_str)
|
||||
print("Wrote golden file:", golden_path)
|
||||
|
||||
|
||||
def _show_differences(failed):
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
try:
|
||||
golden_dir = os.path.join(temp_dir, "golden")
|
||||
actual_dir = os.path.join(temp_dir, "actual")
|
||||
os.mkdir(golden_dir)
|
||||
os.mkdir(actual_dir)
|
||||
for actual_str, golden_file in failed:
|
||||
name = os.path.basename(golden_file)
|
||||
actual_path = os.path.join(actual_dir, name)
|
||||
with open(actual_path, "wb") as actual:
|
||||
actual.write(actual_str)
|
||||
os.symlink(os.path.abspath(golden_file),
|
||||
os.path.join(golden_dir, name))
|
||||
diff_command = ["meld"] if shutil.which("meld") else ["diff", "-r"]
|
||||
subprocess.run(diff_command + [actual_dir, golden_dir])
|
||||
finally:
|
||||
shutil.rmtree(temp_dir)
|
||||
|
||||
|
||||
_FAILED = set()
|
||||
|
||||
|
||||
def assertGolden(actual, golden_path):
|
||||
actual = actual.encode("utf-8")
|
||||
try:
|
||||
with open(golden_path, "rb") as golden_file:
|
||||
expected = golden_file.read()
|
||||
except FileNotFoundError:
|
||||
expected = None
|
||||
if actual != expected:
|
||||
_FAILED.add((actual, golden_path))
|
||||
if expected is None:
|
||||
raise unittest.TestCase.failureException(
|
||||
f'The golden file does not exist: {golden_path!r}\n'
|
||||
'Use "--diff" or "--accept" to create the golden file.')
|
||||
else:
|
||||
raise unittest.TestCase.failureException(
|
||||
f'Output does not match golden file: {golden_path!r}\n'
|
||||
'Use "--diff" or "--accept" to update the golden file.')
|
||||
|
||||
|
||||
def main():
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option("-a", "--accept", action="store_true",
|
||||
dest="should_accept_actual")
|
||||
parser.add_option("-d", "--diff", action="store_true", dest="should_diff")
|
||||
options, args = parser.parse_args()
|
||||
# unitest.main doesn't expect these arguments, so remove them.
|
||||
for argument in ["-a", "--accept", "-d", "--diff"]:
|
||||
if argument in sys.argv:
|
||||
sys.argv.remove(argument)
|
||||
try:
|
||||
unittest.main()
|
||||
finally:
|
||||
if len(_FAILED) > 0:
|
||||
if options.should_accept_actual:
|
||||
_accept_actual(_FAILED)
|
||||
if options.should_diff:
|
||||
_show_differences(_FAILED)
|
||||
46
tests/paged_list_test.py
Executable file
46
tests/paged_list_test.py
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env python3.11
|
||||
|
||||
|
||||
import pickle
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import eris.paged_list as paged_list
|
||||
|
||||
|
||||
class PagedListTestCase(unittest.TestCase):
|
||||
|
||||
def test_batch(self):
|
||||
self.assertEqual(list(paged_list.batch(iter([3, 4, 5, 6, 7]), 2)),
|
||||
[[3, 4], [5, 6], [7]])
|
||||
|
||||
def test_getitem(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5, 6], temp_dir, 4, 2)
|
||||
self.assertEqual(list_[1], 4)
|
||||
self.assertEqual(list_[1:3], [4, 5])
|
||||
self.assertEqual(list_[0:4], [3, 4, 5, 6])
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5, 6], temp_dir, 2, 2)
|
||||
self.assertEqual(list_[1:3], [4, 5])
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5, 6, 7, 8], temp_dir, 2, 2)
|
||||
self.assertEqual(list_[1:5], [4, 5, 6, 7])
|
||||
self.assertEqual(list_[:2], [3, 4])
|
||||
self.assertEqual(list_[2:], [5, 6, 7, 8])
|
||||
self.assertEqual(list(list_), [3, 4, 5, 6, 7, 8])
|
||||
self.assertRaises(IndexError, list_.__getitem__, 6)
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([], temp_dir, 2, 2)
|
||||
self.assertRaises(IndexError, list_.__getitem__, 0)
|
||||
# self.assertEqual(list_[3:4], []) FIX
|
||||
|
||||
def test_pickling(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5], temp_dir, 2, 2)
|
||||
list_b = pickle.loads(pickle.dumps(list_))
|
||||
self.assertEqual(list_b[1], 4)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
170
tests/tools_test.py
Executable file
170
tests/tools_test.py
Executable file
|
|
@ -0,0 +1,170 @@
|
|||
#!/usr/bin/env python3.11
|
||||
|
||||
|
||||
import contextlib
|
||||
import os
|
||||
import shutil
|
||||
import unittest
|
||||
import unittest.mock
|
||||
|
||||
import termstr
|
||||
|
||||
import golden
|
||||
import eris.tools as tools
|
||||
|
||||
|
||||
os.environ["TERM"] = "xterm-256color"
|
||||
os.environ["TZ"] = "GMT"
|
||||
ERIS_ROOT = os.path.dirname(__file__)
|
||||
|
||||
|
||||
class ExecutablesTestCase(unittest.TestCase):
|
||||
|
||||
def test_executables_exist_in_path(self):
|
||||
# Tools not in ubuntu:
|
||||
exceptions = {tools.wasm_validate, tools.wasm_objdump}
|
||||
for tool in tools.tools_all() - exceptions:
|
||||
if hasattr(tool, "executables"):
|
||||
for executable in tool.executables:
|
||||
with self.subTest(executable=executable, tool=tool):
|
||||
self.assertTrue(shutil.which(executable))
|
||||
|
||||
|
||||
def widget_to_string(widget):
|
||||
return str(termstr.join("\n", widget.appearance()))
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def chdir(path):
|
||||
old_cwd = os.getcwd()
|
||||
os.chdir(path)
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
os.chdir(old_cwd)
|
||||
|
||||
|
||||
def result_path(tool, input_filename):
|
||||
filename = tool.__name__ + "-" + input_filename.replace(".", "_")
|
||||
return os.path.join(ERIS_ROOT, "golden-files", "results", filename)
|
||||
|
||||
|
||||
def run_tool(tool, input_filename):
|
||||
with chdir(os.path.join(ERIS_ROOT, "golden-files")):
|
||||
return tool(os.path.join(".", "input", input_filename))
|
||||
|
||||
|
||||
class ToolsTestCase(unittest.TestCase):
|
||||
|
||||
def _test_tool(self, tool, sub_tests):
|
||||
for input_filename, expected_status in sub_tests:
|
||||
with self.subTest(input_filename=input_filename):
|
||||
status, result = run_tool(tool, input_filename)
|
||||
golden_path = result_path(tool, input_filename)
|
||||
golden.assertGolden(str(result), golden_path)
|
||||
self.assertEqual(status, expected_status)
|
||||
|
||||
def test_metadata(self):
|
||||
mock_stat_result = unittest.mock.Mock(
|
||||
st_mode=0o755, st_mtime=1454282045, st_ctime=1454282045, st_atime=1454282047,
|
||||
st_size=12, st_uid=1111, st_gid=1111, st_nlink=2)
|
||||
mock_pw_entry = unittest.mock.Mock(pw_name="foo")
|
||||
with unittest.mock.patch.object(os, "stat", return_value=mock_stat_result):
|
||||
with unittest.mock.patch.object(tools.pwd, "getpwuid", return_value=mock_pw_entry):
|
||||
self._test_tool(tools.metadata, [("hi3.py", tools.Status.ok)])
|
||||
|
||||
def test_contents(self):
|
||||
self._test_tool(tools.contents, [("hi3.py", tools.Status.ok)])
|
||||
|
||||
HI_OK = [("hi3.py", tools.Status.ok)]
|
||||
|
||||
def test_python_syntax(self):
|
||||
self._test_tool(tools.python_syntax, self.HI_OK)
|
||||
|
||||
HI_OK = [("hi3.py", tools.Status.ok)]
|
||||
|
||||
def test_mypy(self):
|
||||
self._test_tool(tools.mypy, self.HI_OK)
|
||||
|
||||
def test_pycodestyle(self):
|
||||
self._test_tool(tools.pycodestyle, self.HI_OK)
|
||||
|
||||
def test_pyflakes(self):
|
||||
self._test_tool(tools.pyflakes, self.HI_OK)
|
||||
|
||||
def test_pylint(self):
|
||||
self._test_tool(tools.pylint, self.HI_OK)
|
||||
|
||||
def test_python_gut(self):
|
||||
self._test_tool(tools.python_gut, self.HI_OK)
|
||||
|
||||
def test_python_mccabe(self):
|
||||
self._test_tool(tools.python_mccabe, self.HI_OK)
|
||||
|
||||
def test_perl_syntax(self):
|
||||
self._test_tool(tools.perl_syntax, [("perl.pl", tools.Status.ok)])
|
||||
|
||||
def test_c_syntax_gcc(self):
|
||||
self._test_tool(tools.c_syntax_gcc, [("hello.c", tools.Status.ok)])
|
||||
|
||||
def test_objdump_headers(self):
|
||||
self._test_tool(tools.objdump_headers, [("rotatingtree.o", tools.Status.ok)])
|
||||
|
||||
def test_objdump_disassemble(self):
|
||||
self._test_tool(tools.objdump_disassemble, [("rotatingtree.o", tools.Status.problem)])
|
||||
|
||||
def test_readelf(self):
|
||||
self._test_tool(tools.readelf, [("rotatingtree.o", tools.Status.ok)])
|
||||
|
||||
def test_zipinfo(self):
|
||||
self._test_tool(tools.zipinfo, [("hi.zip", tools.Status.ok)])
|
||||
|
||||
def test_nm(self):
|
||||
self._test_tool(tools.nm, [("libieee.a", tools.Status.ok),
|
||||
("libpcprofile.so", tools.Status.ok)])
|
||||
|
||||
def test_pdf2txt(self):
|
||||
self._test_tool(tools.pdf2txt, [("standard.pdf", tools.Status.ok)])
|
||||
|
||||
def test_html_syntax(self):
|
||||
self._test_tool(tools.html_syntax, [("hi.html", tools.Status.problem)])
|
||||
|
||||
def test_html2text(self):
|
||||
self._test_tool(tools.html2text, [("hi.html", tools.Status.ok)])
|
||||
|
||||
def test_cpp_syntax_gcc(self):
|
||||
self._test_tool(tools.cpp_syntax_gcc, [("hello.cpp", tools.Status.ok)])
|
||||
|
||||
def test_php8_syntax(self):
|
||||
self._test_tool(tools.php8_syntax, [("root.php", tools.Status.ok)])
|
||||
|
||||
def test_pil(self):
|
||||
for extension in ["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"]:
|
||||
self._test_tool(tools.pil, [("circle." + extension, tools.Status.ok)])
|
||||
|
||||
|
||||
class LruCacheWithEvictionTestCase(unittest.TestCase):
|
||||
|
||||
def _assert_cache(self, func, hits, misses, current_size):
|
||||
cache_info = func.cache_info()
|
||||
self.assertEqual(cache_info.hits, hits)
|
||||
self.assertEqual(cache_info.misses, misses)
|
||||
self.assertEqual(cache_info.currsize, current_size)
|
||||
|
||||
def test_lru_cache_with_eviction(self):
|
||||
@tools.lru_cache_with_eviction()
|
||||
def a(foo):
|
||||
return foo
|
||||
self._assert_cache(a, 0, 0, 0)
|
||||
self.assertEqual(a(1), 1)
|
||||
self._assert_cache(a, 0, 1, 1)
|
||||
a(1)
|
||||
self._assert_cache(a, 1, 1, 1)
|
||||
a.evict(1)
|
||||
self._assert_cache(a, 1, 1, 1)
|
||||
a(1)
|
||||
self._assert_cache(a, 1, 2, 2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
golden.main()
|
||||
41
tests/worker_test.py
Executable file
41
tests/worker_test.py
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env python3.11
|
||||
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import eris.tools as tools
|
||||
import eris.worker as worker
|
||||
|
||||
|
||||
class WorkerTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.temp_dir = tempfile.mkdtemp()
|
||||
self.original_working_dir = os.getcwd()
|
||||
os.chdir(self.temp_dir)
|
||||
os.mkdir(tools.CACHE_PATH)
|
||||
open("foo", "w").close()
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.temp_dir)
|
||||
os.chdir(self.original_working_dir)
|
||||
|
||||
def test_run_job(self):
|
||||
loop = asyncio.get_event_loop()
|
||||
compression = "none"
|
||||
worker_ = worker.Worker(compression)
|
||||
loop.run_until_complete(worker_.create_process())
|
||||
worker_.process.stdin.write(f"{compression}\n".encode("utf-8"))
|
||||
future = worker_.run_tool("foo", tools.metadata)
|
||||
status = loop.run_until_complete(future)
|
||||
self.assertEqual(status, tools.Status.ok)
|
||||
result_path = os.path.join(tools.CACHE_PATH, "foo-metadata")
|
||||
self.assertTrue(os.path.exists(result_path))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue