list_test.go 226 B

12345678910111213
  1. package rule
  2. import (
  3. "ehang.io/nps/core/process"
  4. "testing"
  5. )
  6. func TestGetFields(t *testing.T) {
  7. h := process.HttpsServeProcess{HttpServeProcess: process.HttpServeProcess{}}
  8. if len(getFieldName(h)) < 3 {
  9. t.Fail()
  10. }
  11. }