feat: squash multiple modules to one

This commit is contained in:
2024-05-08 19:09:33 +03:00
parent 55719b4399
commit fef404f1a7
37 changed files with 37 additions and 491 deletions

21
pipeline/pipeline_test.go Normal file
View File

@ -0,0 +1,21 @@
package pipeline
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPipe(t *testing.T) {
a := make(chan int, 1)
pipe := func(in int) int {
return in * 2
}
b := Pipe(a, pipe)
a <- 5
close(a)
assert.Equal(t, 10, <-b)
}