Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Example of mocking websocket.Conn #123

Open
tnuanchuay opened this issue Aug 9, 2022 · 2 comments
Open

Example of mocking websocket.Conn #123

tnuanchuay opened this issue Aug 9, 2022 · 2 comments

Comments

@tnuanchuay
Copy link

I am go newbie, but I wonder, Is there the way to mock websocket.Conn ?
I cannot find any example in the test file too.

@tnuanchuay tnuanchuay changed the title Example to mock websocket.Conn Example of mocking websocket.Conn Aug 9, 2022
@gaby
Copy link
Member

gaby commented Aug 18, 2022

👍🏻 for adding this

@daveteu
Copy link

daveteu commented Nov 30, 2022

u can checkout fast http test files. e.g. https://github.com/fasthttp/websocket/blob/master/client_server_test.go

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants