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

ponder-lab / Hybridize-Functions-Refactoring / #3929
90%

Build:
DEFAULT BRANCH: main
Ran 30 Oct 2026 01:59PM UTC
Jobs 1
Files 53
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

30 Oct 2026 01:29PM UTC coverage: 89.542% (-0.04%) from 89.579%
#3929

push

github

web-flow
Refuse a function that returns a NumPy array to a caller (#1200)

* Refuse a function that returns a NumPy array to a caller

A function that only slices and combines an array it is passed returns an
array eagerly, but under `tf.function` the array crosses the boundary as a
tensor and the function returns a tensor, so a caller using the result as an
array breaks. The new RETURNS_NUMPY_ARRAY precondition reads the engine's
origin of each call site's result and refuses when it contains NumPy, which
includes a result that is an array on one path and a tensor on another.

Closes #1199.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn

* Test that a function returning its NumPy argument unchanged is refused

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn

* Say why the NumPy-return check's defensive branches are untested

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

29 of 35 new or added lines in 3 files covered. (82.86%)

6002 of 6703 relevant lines covered (89.54%)

0.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
92.67
-0.15% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java
Jobs
ID Job ID Ran Files Coverage
1 #3929.1 30 Oct 2026 01:59PM UTC 53
89.54
Source Files on build #3929
  • Tree
  • List 53
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 02484216 on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc