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

pantsbuild / pants / 23838324561

01 Apr 2026 07:59AM UTC coverage: 60.966% (-31.9%) from 92.907%
23838324561

Pull #23204

github

web-flow
Merge fd6066932 into 0c78ceb96
Pull Request #23204: Port ScalarField, AsyncFieldMixin and friends to rust

8 of 12 new or added lines in 2 files covered. (66.67%)

19216 existing lines in 560 files now uncovered.

39119 of 64165 relevant lines covered (60.97%)

0.96 hits per line

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

0.0
/src/python/pants/ng/passthru.py
1
# Copyright 2026 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

UNCOV
4
from dataclasses import dataclass
×
5

UNCOV
6
from pants.engine.internals.native_engine import PyNgInvocation
×
UNCOV
7
from pants.engine.internals.session import SessionValues
×
UNCOV
8
from pants.engine.rules import Rule, _uncacheable_rule, collect_rules, implicitly, rule
×
9

10

UNCOV
11
@dataclass(frozen=True)
×
UNCOV
12
class PassthruArgs:
×
13
    # Args passed to Pants after `--` and intended to be passed through to an underlying tool.
14
    args: tuple[str, ...] | None
15

16

UNCOV
17
@_uncacheable_rule
×
UNCOV
18
async def get_ng_invocation(session_values: SessionValues) -> PyNgInvocation:
×
19
    return session_values[PyNgInvocation]
×
20

21

UNCOV
22
@rule
×
UNCOV
23
async def get_passthru_args() -> PassthruArgs:
×
24
    invocation = await get_ng_invocation(**implicitly())
×
25
    return PassthruArgs(invocation.passthru())
×
26

27

UNCOV
28
def rules() -> tuple[Rule, ...]:
×
UNCOV
29
    return (*collect_rules(),)
×
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