• 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

90.0
/abuse_whois/matchers/shared_hosting/rule.py
1
from abuse_whois.pysigma.parser import check_event
2✔
2
from abuse_whois.schemas import BaseRule
2✔
3

4

5
class SharedHostingRule(BaseRule):
2✔
6
    def match(self, hostname: str) -> bool:
2✔
7
        sigma_rule = self.sigma_rule
2✔
8
        if sigma_rule is None:
2✔
NEW
9
            return False
×
10

11
        data = {"domain": hostname}
2✔
12
        alerts = check_event(data, sigma_rule)
2✔
13
        return len(alerts) > 0
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