mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 03:50:27 +08:00
17 lines
352 B
Go
17 lines
352 B
Go
package checkpoints
|
|
|
|
import (
|
|
"net/http"
|
|
"testing"
|
|
|
|
"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
|
|
)
|
|
|
|
func TestResponseStatusCheckpoint_ResponseValue(t *testing.T) {
|
|
resp := requests.NewResponse(new(http.Response))
|
|
resp.StatusCode = 200
|
|
|
|
checkpoint := new(ResponseStatusCheckpoint)
|
|
t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
|
|
}
|