Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: extract generic match_events tests #105

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pipit/tests/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ def test_match_events(data_dir, ping_pong_otf2_trace):
assert rank_1_matching_indices[i] == rank_1_indices[i - 1]
assert rank_1_matching_timestamps[i] == rank_1_timestamps[i - 1]

generic_test_match_events(trace)


def generic_test_match_events(trace):
df = trace.events
# Checks that the Matching Indices and Timestamps for the Enter rows are
# greater than their values
assert (
Expand Down