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

net/http/httptest not implemented #4526

Open
dkegel-fastly opened this issue Oct 16, 2024 · 2 comments
Open

net/http/httptest not implemented #4526

dkegel-fastly opened this issue Oct 16, 2024 · 2 comments

Comments

@dkegel-fastly
Copy link
Contributor

dkegel-fastly commented Oct 16, 2024

The very first roadblock in testing libopenapi with tinygo is net/http/httptest not implemented. (Ditto for openapi-go.)

$ tinygo version
tinygo version 0.34.0-dev-d948941d darwin/amd64 (using go version go1.21.13 and LLVM version 18.1.2)
$ git clone [email protected]:pb33f/libopenapi.git
$ cd libopenapi
$ go test ./...
...
$ tinygo test ./...
../../go/pkg/mod/github.com/stretchr/[email protected]/assert/http_assertions.go:6:2: package net/http/httptest is not in std (/Users/dkegel/Library/Caches/tinygo/goroot-9951da0529238c9063c0f528b787a287b032b47730b2310d6d23558a64a022f9/src/net/http/httptest)
@dgryski
Copy link
Member

dgryski commented Oct 18, 2024

We probably need some hack in https://github.com/tinygo-org/tinygo/blob/release/loader/goroot.go to merge https://github.com/tinygo-org/net and https://github.com/golang/go/tree/master/src/net/http/httptest (and probably figure out what the strategy will be for the rest of the packages under net..)

@dgryski
Copy link
Member

dgryski commented Oct 31, 2024

Solved by tinygo-org/net#34

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

No branches or pull requests

2 participants