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

pantsbuild / pants / 25443604553

06 May 2026 03:05PM UTC coverage: 92.879% (-0.04%) from 92.915%
25443604553

push

github

web-flow
[pants_ng] Scaffolding for a pants_ng mode. (#23319)

In this mode the command line is parsed as an
NG invocation, and dispatched appropriately.

Of course at the moment there are no
implementations to dispatch to. That will follow.

This does expose a new option, `pants_ng` to users. 
There is a big warning not to set it, but we're not trying
to hide that we're working on a new thing, so I am
comfortable with this.

25 of 76 new or added lines in 9 files covered. (32.89%)

1294 existing lines in 76 files now uncovered.

92234 of 99306 relevant lines covered (92.88%)

4.05 hits per line

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

100.0
/src/python/pants/backend/codegen/protobuf/scala/symbol_mapper.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from __future__ import annotations
1✔
4

UNCOV
5
from pants.backend.codegen.protobuf import jvm_symbol_mapper
1✔
UNCOV
6
from pants.backend.codegen.protobuf.jvm_symbol_mapper import (
1✔
7
    FirstPartyProtobufJvmMappingRequest,
8
    map_first_party_protobuf_jvm_targets_to_symbols,
9
)
UNCOV
10
from pants.engine.rules import collect_rules, implicitly, rule
1✔
UNCOV
11
from pants.engine.unions import UnionRule
1✔
UNCOV
12
from pants.jvm.dependency_inference import symbol_mapper
1✔
UNCOV
13
from pants.jvm.dependency_inference.symbol_mapper import FirstPartyMappingRequest, SymbolMap
1✔
14

15

UNCOV
16
class FirstPartyProtobufScalaTargetsMappingRequest(FirstPartyMappingRequest):
1✔
UNCOV
17
    pass
1✔
18

19

UNCOV
20
@rule
1✔
UNCOV
21
async def map_first_party_protobuf_scala_targets_to_symbols(
1✔
22
    _: FirstPartyProtobufScalaTargetsMappingRequest,
23
) -> SymbolMap:
UNCOV
24
    return await map_first_party_protobuf_jvm_targets_to_symbols(
1✔
25
        FirstPartyProtobufJvmMappingRequest(capitalize_base_name=False), **implicitly()
26
    )
27

28

UNCOV
29
def rules():
1✔
UNCOV
30
    return [
1✔
31
        *collect_rules(),
32
        *symbol_mapper.rules(),
33
        *jvm_symbol_mapper.rules(),
34
        UnionRule(FirstPartyMappingRequest, FirstPartyProtobufScalaTargetsMappingRequest),
35
    ]
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