Files
pest/src/Plugins
Jeremy Braband 38c79452c1 fix(tia): link files a test reads as text, not only files it executes (#2006)
* fix(tia): link files a test reads as text, not only files it executes

* fix(tia): report dangling symlinks as links while reads are captured

`is_link()` stats with STREAM_URL_STAT_LINK | STREAM_URL_STAT_QUIET.
The `file_exists()` precheck in `ReadCapture::url_stat()` follows the
link, so a dangling symlink returned false before reaching `lstat()`,
and `is_link()` reported false while a test recorded.

Handle STREAM_URL_STAT_LINK first and always answer it through
`lstat()`. A quiet stat of a path that is neither a link nor a file
still returns false without a warning.

The regression test covers a link to an existing file and a dangling
link.

* test(tia): skip the read-capture feature tests without a coverage driver

The fixture runs record a graph from coverage, so with CI's
`coverage: none` all five cases failed. Skip them when
`Coverage::isAvailable()` is false, as CoveragePiggyback does.

* chore: style

* Refresh read capture test snapshots

---------

Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-11-15 00:54:24 +05:30
..
2026-08-07 14:52:56 +01:00
2026-08-07 14:52:56 +01:00
2026-10-07 23:02:36 +04:00
2026-10-07 23:02:36 +04:00
2026-08-07 14:52:56 +01:00
2026-08-07 14:52:56 +01:00
2026-10-07 23:02:36 +04:00
2026-08-07 14:52:56 +01:00
2026-08-07 14:52:56 +01:00
2026-08-07 14:52:56 +01:00
2024-03-14 19:39:45 +00:00
2026-08-07 14:52:56 +01:00
2023-08-17 11:24:16 +01:00