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

Unit Tests for trigger object behavior in buffers/requests #353

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

wesketchum
Copy link
Contributor

This PR implements unit tests using the common datahandlinglibs test functions that check the SkipListLatencyBuffer with enclosed trigger types (TriggerPrimitiveTypeAdapter, TAWrapper, TCWrapper), with respect to returning the correct lower_bound behavior and to responding to requests to form fragments properly.

Note that the TAWrapper and TCWrappers need a bit more care in making sure the underling data is populated on the construction of the test objects. There should (hopefully...) be no change in the behavior of the code that isn't intended.

This PR needs DUNE-DAQ/datahandlinglibs#27. With that pulled down, to run the unit tests, do

dbt-build --unittest trigger

We should wait to merge this PR in until the datahandlinglibs PR has been approved and merged as well.

@wesketchum
Copy link
Contributor Author

DUNE-DAQ/datahandlinglibs#27 has now been merged to develop, so when this is reviewed it can be merged too.

Copy link
Contributor

@ArturSztuc ArturSztuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Tested by running the test (successful), and drunc with TA/TC making switched on, to see if the behaviour changes (it didn't).

@wesketchum wesketchum merged commit 976affa into develop Oct 30, 2024
1 of 2 checks passed
@wesketchum wesketchum deleted the feature/wketchum_AddTypeAdapterBufferUnitTests branch October 30, 2024 11:26
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.

2 participants