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

SlowAPI / fast-json-pointer / 3755347159

pending completion
3755347159

push

github

Tristan Sweeney
Add JSONPath style verbs to leverage pointers

123 of 123 new or added lines in 2 files covered. (100.0%)

203 of 222 relevant lines covered (91.44%)

0.91 hits per line

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

93.33
/src/fast_json_pointer/exceptions.py
1
from __future__ import annotations
1✔
2

3
from typing import TYPE_CHECKING
1✔
4

5
if TYPE_CHECKING:
1✔
6
    from .resolver import JsonPointer, JsonRef
×
7

8

9
class JsonPointerException(Exception):
1✔
10
    """Generic json pointer failure."""
1✔
11

12

13
class ParseException(JsonPointerException):
1✔
14
    """Failure occurred while parsing a json pointer."""
1✔
15

16

17
class ResolutionException(JsonPointerException):
1✔
18
    """Failure occurred while resolving a json pointer."""
1✔
19

20
    def __init__(self, *args, doc_refs: list[JsonRef], remaining) -> None:
1✔
21
        self.doc_refs = doc_refs
1✔
22
        self.remaining = remaining
1✔
23

24

25
class EndOfArrayException(ResolutionException):
1✔
26
    """Reference pointed to the end of a array."""
1✔
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