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

core+tests: Socket testing and improvements #12262

Merged
merged 19 commits into from
Jul 26, 2023

Conversation

sleepycatcoding
Copy link
Member

@sleepycatcoding sleepycatcoding commented Jul 23, 2023

Add support in SWF regression testing framework to mock a socket. Also some improvements to the general socket framework.

List of things left to do:

  • Better name for socket_mock utility.
  • Allow specifying socket mock file path in the utility.
  • Add tests for Socket now that the backend exists

@torokati44
Copy link
Member

Better name for socket_mock utility

mocket

@Dinnerbone
Copy link
Contributor

Better name for socket_mock utility

mocket

Darnit I saw that text and immediately scrolled down to comment mocket too.

+1 for mocket.

@torokati44
Copy link
Member

Sadly we're not the first ones to make this portmanteau:
https://github.com/mindflayer/python-mocket

@sleepycatcoding sleepycatcoding marked this pull request as ready for review July 23, 2023 19:52
@Dinnerbone Dinnerbone added the waiting-on-review Waiting on review from a Ruffle team member label Jul 24, 2023
Copy link
Contributor

@Dinnerbone Dinnerbone left a comment

Choose a reason for hiding this comment

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

Awesome work once again!

I think I'd quite like some utility stuff in the socket format, for texts/floats/common data types, so we don't need to write out everything in bytes. But that's a nit and can come at any time later.

This all looks great to me, thank you!

@Dinnerbone Dinnerbone enabled auto-merge (rebase) July 26, 2023 11:38
@Dinnerbone Dinnerbone merged commit dc5cf08 into ruffle-rs:master Jul 26, 2023
@Lord-McSweeney Lord-McSweeney removed the waiting-on-review Waiting on review from a Ruffle team member label Jul 27, 2023
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.

4 participants