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

ponder-lab / Hybridize-Functions-Refactoring / #1912
80%
main: 79%

Build:
Build:
LAST BUILD BRANCH: feature/588-union-dtype-injection
DEFAULT BRANCH: main
Ran 11 Jun 2026 02:34PM UTC
Jobs 1
Files 31
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jun 2026 02:29PM UTC coverage: 79.979% (+0.03%) from 79.948%
#1912

Pull #615

travis-pro

khatchad
Auto-inject the union of all functions' dtype constants per file

The auto-inject path in `convertToHybrid` injected a `from tensorflow
import ...` line carrying the dtype constants of the first hybridizable
function processed in an import-less file. A later function in the same
file needing a dtype the first did not inject was gated off emission by
the reachability check (#585) and left with a bare `@function`.

Add a file-level pre-pass, `Function.planAutoInjectedImports`, that the
processor runs before transforming: it collects, per file, the union of
every to-be-hybridized function's `requiredDTypeNames` from the memoized
inferred signatures (no inference re-triggered). `convertToHybrid` unions
that plan with the function's own dtypes when fixing the injected line,
so every function in the file emits its signature unqualified. Falls back
to the function's own dtypes when no plan was computed (direct transform).

Closes #588

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #615: Auto-inject the union of all functions' dtype constants per file

15 of 17 new or added lines in 2 files covered. (88.24%)

1 existing line in 1 file now uncovered.

1554 of 1943 relevant lines covered (79.98%)

0.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.88
-0.0% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java
1
69.38
-0.27% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java

Coverage Regressions

Lines Coverage ∆ File
1
69.38
-0.27% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java
Jobs
ID Job ID Ran Files Coverage
1 #1912.1 11 Jun 2026 02:34PM UTC 31
79.98
Source Files on build #1912
  • Tree
  • List 31
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #615
  • PR Base - feature/memoize-inferred-input-signature (#)
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