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

pantsbuild / pants / 24164262159

08 Apr 2026 11:36PM UTC coverage: 85.889% (-7.0%) from 92.91%
24164262159

Pull #23238

github

web-flow
Merge 88d90acad into 5a129def6
Pull Request #23238: TypeScript: `prettier fmt` crashes with resolve in subdirectory

3 of 3 new or added lines in 1 file covered. (100.0%)

5412 existing lines in 246 files now uncovered.

72530 of 84446 relevant lines covered (85.89%)

3.13 hits per line

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

50.0
/src/python/pants/backend/terraform/partition.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
2✔
5

6
import os
2✔
7
from collections import defaultdict
2✔
8
from collections.abc import Iterable
2✔
9

10

11
def partition_files_by_directory(filepaths: Iterable[str]) -> dict[str, list[str]]:
2✔
12
    """Maps files to directories, since `terraform` operates on a directory-by-directory basis."""
UNCOV
13
    directories = defaultdict(list)
×
UNCOV
14
    for filepath in filepaths:
×
UNCOV
15
        directory = os.path.dirname(filepath) or "."
×
UNCOV
16
        directories[directory].append(filepath)
×
17

UNCOV
18
    return directories
×
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