1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-25 22:21:49 +02:00

fix: refactor

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-11 11:01:49 +01:00
parent 62fcd186a3
commit 600521b220
100 changed files with 1786 additions and 1618 deletions

View File

@@ -152,7 +152,7 @@ func TestPromap(t *testing.T) {
env := Env{Config: Config{Port: 8080}}
getPort := func(c Config) int { return c.Port }
extractConfig := func(e Env) Config { return e.Config }
toString := func(i int) string { return strconv.Itoa(i) }
toString := strconv.Itoa
r := Promap(extractConfig, toString)(getPort)
result := r(env)
assert.Equal(t, "8080", result)