github.com/TeaOSLab/EdgeNode@v1.3.8/internal/waf/checkpoints/response_status_test.go (about)

     1  package checkpoints
     2  
     3  import (
     4  	"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
     5  	"net/http"
     6  	"testing"
     7  )
     8  
     9  func TestResponseStatusCheckpoint_ResponseValue(t *testing.T) {
    10  	resp := requests.NewResponse(new(http.Response))
    11  	resp.StatusCode = 200
    12  
    13  	checkpoint := new(ResponseStatusCheckpoint)
    14  	t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
    15  }