diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-30 22:19:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-30 22:19:57 +0300 |
| commit | db7c18b976c6bb87ca3dbbfdf436c1945aab3289 (patch) | |
| tree | d0b4990f76c1b64e9a8f0841b97b4dde9d7c8894 /internal/flags/sampling_test.go | |
| parent | c5ef17c2b728eae057fae43db020d1023e5cc634 (diff) | |
test(generate): lock in pwritev WRITE byte-count classification
Audit of pwritev(2) confirmed the existing classification is correct:
pwritev returns the number of bytes written, so its exit is
WRITE_CLASSIFIED (matching write/pwrite64/writev/pwritev2), fd is at
args[0] (KindFd), and it lives in the FS family. The read-side sibling
preadv stays READ_CLASSIFIED. No implementation changes were needed.
Add TestClassifyPwritevWriteByteCount as a lock-in test mirroring the
prior pwritev2/pwrite64 audits, with a preadv off-by-one contrast guard
and transfer/unclassified negative checks across the whole p/readv/writev
family so any stray reclassification trips the test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/flags/sampling_test.go')
0 files changed, 0 insertions, 0 deletions
