Skip to content

add tests#65

Draft
soypat wants to merge 3 commits into
mainfrom
feat/udp-resolver-dnserror-tls-tests
Draft

add tests#65
soypat wants to merge 3 commits into
mainfrom
feat/udp-resolver-dnserror-tls-tests

Conversation

@soypat

@soypat soypat commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

I'm not a fan of this method of testing. it is close to the way upstream go does it so here it is I guess.

soypat added 3 commits July 3, 2026 10:32
TinyGo's net package was missing several symbols that upstream Go's
js/wasm net declares, blocking builds that pull pion/transport, pion/dtls,
and similar (via netbird's WASM client). Add them, backed by the existing
netdev abstraction so they compile for all targets and no-op cleanly under
nopNetdev (matching Go's js runtime behavior):

- DNSError type (dnserror.go), copied from Go 1.26.2.
- Resolver + DefaultResolver with LookupHost/LookupIP/LookupIPAddr/
  LookupNetIP/LookupPort; LookupHost/LookupIP package funcs; Dialer.Resolver
  field for API compatibility.
- UDPConn: ListenUDP, ReadFromUDP(AddrPort), WriteToUDP(AddrPort),
  SetReadBuffer, SetWriteBuffer.
- TCPConn: CloseRead, SetNoDelay, SetReadBuffer, SetWriteBuffer,
  ReadFrom(io.Reader).
- TCPListener: ListenTCP, AcceptTCP, SetDeadline; ListenPacket package func.
- Interface: Addrs, MulticastAddrs stubs.
Base automatically changed from feat/wasm-udp-resolver-dnserror to main July 6, 2026 18:24
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.

1 participant