-
Notifications
You must be signed in to change notification settings - Fork 453
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
Easy issue: port tests from Go to Rust #201
Comments
ghost
referenced
this issue
in crossbeam-rs/crossbeam-channel
Jun 28, 2018
Here are a couple more tests for the Go suite. I left a TODO and ignored the test for now since I can't figure out how to `drop` the sending half of one channel. Hopefully this is an easy fix or perhaps I didn't port it correctly. Part of #58
ghost
referenced
this issue
in crossbeam-rs/crossbeam-channel
Jul 8, 2018
Add the FIFO test as part of #58
bors bot
added a commit
that referenced
this issue
May 20, 2019
380: Port test from Go lang - goroutines r=stjepang a=itarato Porting the [goroutines](https://github.com/golang/go/blob/master/test/chan/goroutines.go) test from the Go lang repository. Part of #201 Any help would be appreciated. Co-authored-by: Peter Arato <it.arato@gmail.com>
bors bot
added a commit
that referenced
this issue
May 21, 2019
380: Port test from Go lang - goroutines r=stjepang a=itarato Porting the [goroutines](https://github.com/golang/go/blob/master/test/chan/goroutines.go) test from the Go lang repository. Part of #201 Any help would be appreciated. Co-authored-by: Peter Arato <it.arato@gmail.com>
Hi, if this is an issue that still needs attention, I would like to help out. |
@byusti That'd be great, thank you :) You can look at the following file: https://github.com/crossbeam-rs/crossbeam/blob/master/crossbeam-channel/tests/golang.rs There's a bunch of TODOs there with links to tests written in Go that should be ported to Rust. |
bors bot
added a commit
that referenced
this issue
Dec 31, 2020
615: Port Golang chan1.go Test r=taiki-e a=SkamDart Rust port [chan1.go](https://github.com/golang/go/blob/master/test/ken/chan1.go) Based on an ask in #201 Co-authored-by: Cameron Dart <cdart@anduril.com>
bors bot
added a commit
that referenced
this issue
May 16, 2022
824: Golang test chan r=taiki-e a=alygin Port of the [chan.go](https://github.com/golang/go/blob/master/test/ken/chan.go) test. Part of #201 Co-authored-by: Andrew Lygin <alygin@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the following file we have already ported some tests from Go to Rust:
https://github.com/crossbeam-rs/crossbeam-channel/blob/master/tests/golang.rs
The idea is to blindly port all the tests for Go channels line by line, which will give us additional confidence in the correctness of crossbeam-channel.
In the test file, you can find stubs with links to the original tests written in Go and todos that need to be filled out.
Porting is a relatively straightforward task, so if you're looking for an approachable issue to tackle, this is the one! :) Also, you don't have to port everything at once - we'll do it incrementally in small pieces. Port as much code as you feel like!
The text was updated successfully, but these errors were encountered: