• 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

83.33
/src/python/pants/backend/java/bsp/spec.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✔
6

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

9
# -----------------------------------------------------------------------------------------------
10
# Javac Options Request
11
# See https://build-server-protocol.github.io/docs/extensions/java.html#javac-options-request
12
# -----------------------------------------------------------------------------------------------
13

14

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

UNCOV
19
    @classmethod
2✔
UNCOV
20
    def from_json_dict(cls, d):
2✔
21
        return cls(
×
22
            targets=tuple(BuildTargetIdentifier.from_json_dict(x) for x in d["targets"]),
23
        )
24

UNCOV
25
    def to_json_dict(self):
2✔
26
        return {
×
27
            "targets": [tgt.to_json_dict() for tgt in self.targets],
28
        }
29

30

UNCOV
31
@dataclass(frozen=True)
2✔
UNCOV
32
class JavacOptionsItem:
2✔
UNCOV
33
    target: BuildTargetIdentifier
2✔
34

35
    # Additional arguments to the compiler.
36
    # For example, -deprecation.
UNCOV
37
    options: tuple[str, ...]
2✔
38

39
    # The dependency classpath for this target, must be
40
    # identical to what is passed as arguments to
41
    # the -classpath flag in the command line interface
42
    # of javac.
UNCOV
43
    classpath: tuple[Uri, ...]
2✔
44

45
    # The output directory for classfiles produced by this target
UNCOV
46
    class_directory: Uri
2✔
47

UNCOV
48
    def to_json_dict(self):
2✔
49
        return {
×
50
            "target": self.target.to_json_dict(),
51
            "options": self.options,
52
            "classpath": self.classpath,
53
            "classDirectory": self.class_directory,
54
        }
55

56

UNCOV
57
@dataclass(frozen=True)
2✔
UNCOV
58
class JavacOptionsResult:
2✔
UNCOV
59
    items: tuple[JavacOptionsItem, ...]
2✔
60

UNCOV
61
    def to_json_dict(self):
2✔
62
        return {"items": [item.to_json_dict() for item in self.items]}
×
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