Skip to content

Add unit tests for BuildRequest helper #124

Add unit tests for BuildRequest helper

Add unit tests for BuildRequest helper #124

Triggered via push February 10, 2026 18:54
Status Failure
Total duration 27s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: opensearchtransport/policy_mux_internal_test.go#L416
"200" can be replaced by http.StatusOK (usestdlibvars)
Lint: opensearchtransport/policy_mux_internal_test.go#L185
"POST" can be replaced by http.MethodPost (usestdlibvars)
Lint: opensearchtransport/policy_mux_internal_test.go#L156
"POST" can be replaced by http.MethodPost (usestdlibvars)
Lint: opensearchtransport/policy_mux_internal_test.go#L139
"POST" can be replaced by http.MethodPost (usestdlibvars)
Lint: opensearchtransport/policy_chain_internal_test.go#L115
"GET" can be replaced by http.MethodGet (usestdlibvars)
Lint: opensearchtransport/policy_chain_internal_test.go#L103
"GET" can be replaced by http.MethodGet (usestdlibvars)
Lint: opensearchtransport/policy_chain_internal_test.go#L78
"GET" can be replaced by http.MethodGet (usestdlibvars)
Lint: opensearchtransport/policy_cluster_coordinator_internal_test.go#L130
return both a `nil` error and an invalid value: use a sentinel error instead (nilnil)
Lint: opensearchtransport/policy_chain_internal_test.go#L226
return both a `nil` error and an invalid value: use a sentinel error instead (nilnil)
Lint: opensearchtransport/policy_chain_internal_test.go#L211
return both a `nil` error and an invalid value: use a sentinel error instead (nilnil)