summaryrefslogtreecommitdiff
path: root/pkg/test/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/test/http.go')
-rw-r--r--pkg/test/http.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/test/http.go b/pkg/test/http.go
index 280aef6..6c15016 100644
--- a/pkg/test/http.go
+++ b/pkg/test/http.go
@@ -10,9 +10,10 @@ import (
xcontext "github.com/xlgmokha/x/pkg/context"
"github.com/xlgmokha/x/pkg/serde"
"github.com/xlgmokha/x/pkg/x"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
)
-type RequestOption func(*http.Request) *http.Request
+type RequestOption pls.Option[*http.Request]
func Request(method, target string, options ...RequestOption) *http.Request {
request := httptest.NewRequest(method, target, nil)