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

pantsbuild / pants / 18822648545

26 Oct 2025 07:24PM UTC coverage: 79.831% (-0.4%) from 80.28%
18822648545

Pull #22809

github

web-flow
Merge 9401c4830 into 170094e99
Pull Request #22809: golang: fix Go SDK version check for coverage experiment

0 of 1 new or added line in 1 file covered. (0.0%)

439 existing lines in 25 files now uncovered.

77436 of 97000 relevant lines covered (79.83%)

3.35 hits per line

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

93.33
/src/python/pants/backend/go/util_rules/import_analysis_test.py
1
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
1✔
5

6
import pytest
1✔
7

8
from pants.backend.go.util_rules import import_analysis, sdk
1✔
9
from pants.backend.go.util_rules.import_analysis import GoStdLibPackages, GoStdLibPackagesRequest
1✔
10
from pants.engine.rules import QueryRule
1✔
11
from pants.testutil.rule_runner import RuleRunner
1✔
12

13

14
@pytest.fixture
1✔
15
def rule_runner() -> RuleRunner:
1✔
16
    rule_runner = RuleRunner(
1✔
17
        rules=[
18
            *sdk.rules(),
19
            *import_analysis.rules(),
20
            QueryRule(GoStdLibPackages, (GoStdLibPackagesRequest,)),
21
        ],
22
    )
23
    rule_runner.set_options([], env_inherit={"PATH"})
1✔
24
    return rule_runner
1✔
25

26

27
@pytest.mark.parametrize("with_race_detector", (False, True))
1✔
28
def test_stdlib_package_resolution(rule_runner: RuleRunner, with_race_detector: bool) -> None:
1✔
29
    std_lib_imports = rule_runner.request(
1✔
30
        GoStdLibPackages, [GoStdLibPackagesRequest(with_race_detector=with_race_detector)]
31
    )
UNCOV
32
    assert "fmt" in std_lib_imports
×
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