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

Test for correct network ordering of packets #2562

Merged
merged 1 commit into from
May 22, 2023

Conversation

ChrisThrasher
Copy link
Member

@ChrisThrasher ChrisThrasher commented May 21, 2023

Description

We were previously testing for round-trip correctness after serialization and deserialization but we were not testing that the serialized forms matches network order. It's a safe assumption that all of our development machines and CI runners are Little Endian so these tests won't be truly meaningful until we can run on Big Endian hardware. Given how rare BE hardware is, arguably it doesn't even matter whether we honor network ordering but as it stands now, the API promises as such so it's a good idea to test it.

These tests will give us more feedback on the changes made in #2380.

@codecov
Copy link

codecov bot commented May 21, 2023

Codecov Report

Merging #2562 (b1a9849) into master (d131beb) will increase coverage by 0.11%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2562      +/-   ##
==========================================
+ Coverage   27.18%   27.29%   +0.11%     
==========================================
  Files         227      227              
  Lines       19701    19701              
  Branches     4747     4747              
==========================================
+ Hits         5355     5377      +22     
+ Misses      13887    13577     -310     
- Partials      459      747     +288     

see 54 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d131beb...b1a9849. Read the comment docs.

@ChrisThrasher ChrisThrasher merged commit 865a508 into SFML:master May 22, 2023
80 checks passed
@ChrisThrasher ChrisThrasher deleted the test_network_order branch May 22, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants