multi_test.go 426 B

123456789101112131415161718192021222324
  1. package identify
  2. import (
  3. "testing"
  4. )
  5. func TestNewMultiCheck(t *testing.T) {
  6. //map[string]MultiRule{}
  7. ruleString := `{"过滤初期":{"step":{"NvIn":["26"]},"filter_time":{"NvIn":["360...660"]}}}`
  8. ovs := map[string]string{
  9. "step": "25",
  10. "filter_time": "361",
  11. }
  12. nvs := map[string]string{
  13. "step": "26",
  14. "filter_time": "660",
  15. }
  16. eventName := MultiTest(ovs, nvs, ruleString)
  17. t.Log(eventName)
  18. }