Skip to content

Test/pytest unit tests#8

Merged
jzh18 merged 2 commits into
mainfrom
test/pytest-unit-tests
Jun 12, 2026
Merged

Test/pytest unit tests#8
jzh18 merged 2 commits into
mainfrom
test/pytest-unit-tests

Conversation

@jzh18

@jzh18 jzh18 commented Jun 12, 2026

Copy link
Copy Markdown
Member

No description provided.

jzh18 added 2 commits June 12, 2026 03:46
It captures no closure state and being nested made it untestable;
no behavior change.
47 tests covering the pure logic that previous bugs lived in:

- postprocess: remove_duplicate_branch_taken, get_pid_tid
- process: deduplicate_modules (regression for the dedup bug) and
  get_loaded_module with a stubbed Module (multi-tid dedup, empty-file
  fallback to other pids, malformed-line rejection)
- function_call: log-line parsers, Call.__repr__ (regression for the
  self.abs bug), BlockInfo parsing, and process_logs call-tree
  construction with stubbed process memory
- library: function range lookup, is_function_start, insert (split /
  before-first / gap) and remove (first / middle / non-start) against
  a synthetic function list, no ELF fixture required

The CI test job fetches only the sr-utils submodule (imported
transitively by library.py); the heavy native submodules are not
needed for unit tests.
@jzh18 jzh18 merged commit 0d904d3 into main Jun 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant