• 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

95.24
/abuse_whois/pysigma/schemas/rule.py
1
from pydantic import Field
2✔
2

3
from .base_model import BaseModel
2✔
4
from .detection import Condition, Detection, DetectionField
2✔
5

6

7
class Rule(BaseModel):
2✔
8
    title: str = Field(...)
2✔
9
    detection: Detection = Field(...)
2✔
10

11
    author: str | None = Field(default=None)
2✔
12
    description: str | None = Field(default=None)
2✔
13
    id: str | None = Field(default=None)
2✔
14
    level: str | None = Field(default=None)
2✔
15
    status: str | None = Field(default=None)
2✔
16

17
    references: list[str] | None = Field(default=None)
2✔
18
    tags: list[str] | None = Field(default=None)
2✔
19

20
    related: dict[str, str] | None = Field(default=None)
2✔
21
    logsource: dict[str, str] | None = Field(default=None)
2✔
22

23
    def get_condition(self) -> Condition | None:
2✔
24
        return self.detection.condition
2✔
25

26
    def get_all_searches(self) -> dict[str, DetectionField]:
2✔
NEW
27
        return self.detection.detection
×
28

29
    def get_search_fields(self, search_id) -> DetectionField | None:
2✔
30
        return self.detection.detection.get(search_id)
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