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

pantsbuild / pants / 19015773527

02 Nov 2025 05:33PM UTC coverage: 17.872% (-62.4%) from 80.3%
19015773527

Pull #22816

github

web-flow
Merge a12d75757 into 6c024e162
Pull Request #22816: Update Pants internal Python to 3.14

4 of 5 new or added lines in 3 files covered. (80.0%)

28452 existing lines in 683 files now uncovered.

9831 of 55007 relevant lines covered (17.87%)

0.18 hits per line

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

0.0
/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
×
4

UNCOV
5
from dataclasses import dataclass
×
6

UNCOV
7
from pants.bsp.spec.base import BuildTargetIdentifier, Uri
×
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)
×
UNCOV
16
class JavacOptionsParams:
×
UNCOV
17
    targets: tuple[BuildTargetIdentifier, ...]
×
18

UNCOV
19
    @classmethod
×
UNCOV
20
    def from_json_dict(cls, d):
×
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):
×
26
        return {
×
27
            "targets": [tgt.to_json_dict() for tgt in self.targets],
28
        }
29

30

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

35
    # Additional arguments to the compiler.
36
    # For example, -deprecation.
UNCOV
37
    options: tuple[str, ...]
×
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, ...]
×
44

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

UNCOV
48
    def to_json_dict(self):
×
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)
×
UNCOV
58
class JavacOptionsResult:
×
UNCOV
59
    items: tuple[JavacOptionsItem, ...]
×
60

UNCOV
61
    def to_json_dict(self):
×
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

© 2025 Coveralls, Inc