2025-11-12 10:35:53 +01:00
|
|
|
package assert
|
|
|
|
|
|
2025-11-24 17:28:48 +01:00
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2025-11-24 18:22:52 +01:00
|
|
|
"github.com/IBM/fp-go/v2/optics/lens"
|
|
|
|
|
"github.com/IBM/fp-go/v2/optics/optional"
|
|
|
|
|
"github.com/IBM/fp-go/v2/optics/prism"
|
2025-11-24 17:28:48 +01:00
|
|
|
"github.com/IBM/fp-go/v2/predicate"
|
|
|
|
|
"github.com/IBM/fp-go/v2/reader"
|
|
|
|
|
"github.com/IBM/fp-go/v2/result"
|
|
|
|
|
)
|
2025-11-12 10:35:53 +01:00
|
|
|
|
|
|
|
|
type (
|
2025-11-24 18:22:52 +01:00
|
|
|
Result[T any] = result.Result[T]
|
|
|
|
|
Reader = reader.Reader[*testing.T, bool]
|
|
|
|
|
Kleisli[T any] = reader.Reader[T, Reader]
|
|
|
|
|
Predicate[T any] = predicate.Predicate[T]
|
|
|
|
|
Lens[S, T any] = lens.Lens[S, T]
|
|
|
|
|
Optional[S, T any] = optional.Optional[S, T]
|
|
|
|
|
Prism[S, T any] = prism.Prism[S, T]
|
2025-11-12 10:35:53 +01:00
|
|
|
)
|