• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ninoseki / abuse_whois / 4020719131

pending completion
4020719131

push

github

GitHub
Merge pull request #42 from ninoseki/sigma

300 of 421 new or added lines in 19 files covered. (71.26%)

7 existing lines in 4 files now uncovered.

608 of 791 relevant lines covered (76.86%)

1.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.75
/abuse_whois/pysigma/schemas/detection.py
1
import re
2✔
2
from collections.abc import Callable
2✔
3
from typing import TYPE_CHECKING, Any, Optional, Union
2✔
4

5
from pydantic import Field
2✔
6

7
from .base_model import BaseModel
2✔
8

9
if TYPE_CHECKING:
2✔
NEW
10
    pass
×
11

12
Query = Optional[Union[str, re.Pattern, Any]]
2✔
13
DetectionMap = list[tuple[str, tuple[list[Query], list[str]]]]
2✔
14
Condition = Callable[["Rule", dict[Any, Any]], Any]
2✔
15

16

17
class DetectionField(BaseModel):
2✔
18
    list_search: list[Query] = Field(default_factory=list)
2✔
19
    map_search: list[DetectionMap] = Field(default_factory=list)
2✔
20

21

22
class Detection(BaseModel):
2✔
23
    detection: dict[str, DetectionField] = Field(...)
2✔
24
    condition: Condition | None = Field(default=None)
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc