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

pantsbuild / pants / 21552830208

31 Jan 2026 11:40PM UTC coverage: 80.277% (-0.05%) from 80.324%
21552830208

Pull #23062

github

web-flow
Merge 808a9786c into 2c4dcf9cf
Pull Request #23062: Remove support for Get

18 of 25 new or added lines in 4 files covered. (72.0%)

17119 existing lines in 541 files now uncovered.

78278 of 97510 relevant lines covered (80.28%)

3.36 hits per line

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

100.0
/src/python/pants/bsp/spec/resources.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from __future__ import annotations
2✔
4

UNCOV
5
from dataclasses import dataclass
2✔
UNCOV
6
from typing import Any
2✔
7

UNCOV
8
from pants.bsp.spec.base import BuildTargetIdentifier, Uri
2✔
9

10
# -----------------------------------------------------------------------------------------------
11
# Resources Request
12
# See https://build-server-protocol.github.io/docs/specification.html#resources-request
13
# -----------------------------------------------------------------------------------------------
14

15

UNCOV
16
@dataclass(frozen=True)
2✔
UNCOV
17
class ResourcesParams:
2✔
UNCOV
18
    targets: tuple[BuildTargetIdentifier, ...]
2✔
19

UNCOV
20
    @classmethod
2✔
UNCOV
21
    def from_json_dict(cls, d: dict[str, Any]) -> Any:
2✔
UNCOV
22
        return cls(
1✔
23
            targets=tuple(BuildTargetIdentifier.from_json_dict(x) for x in d["targets"]),
24
        )
25

UNCOV
26
    def to_json_dict(self) -> dict[str, Any]:
2✔
UNCOV
27
        return {"targets": [tgt.to_json_dict() for tgt in self.targets]}
1✔
28

29

UNCOV
30
@dataclass(frozen=True)
2✔
UNCOV
31
class ResourcesItem:
2✔
UNCOV
32
    target: BuildTargetIdentifier
2✔
33
    # List of resource files.
UNCOV
34
    resources: tuple[Uri, ...]
2✔
35

UNCOV
36
    def to_json_dict(self):
2✔
UNCOV
37
        result = {
1✔
38
            "target": self.target.to_json_dict(),
39
            "resources": self.resources,
40
        }
UNCOV
41
        return result
1✔
42

43

UNCOV
44
@dataclass(frozen=True)
2✔
UNCOV
45
class ResourcesResult:
2✔
UNCOV
46
    items: tuple[ResourcesItem, ...]
2✔
47

UNCOV
48
    def to_json_dict(self) -> dict[str, Any]:
2✔
UNCOV
49
        return {
1✔
50
            "items": [ri.to_json_dict() for ri in self.items],
51
        }
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

© 2026 Coveralls, Inc