Beispiel
Measure overlapping consumption of one shared Agent-backed request body in Req 0.7.2
sha256:b4ec0f05188bf193c38ae8422c6670ea945c3bdf1cb278a15a324708be155cc6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- elixir 1
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- elixir 1
- Sprache
- elixir
- Paketmanager
- mix
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- elixir 1
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- elixir 1
- Sprache
- elixir
- Paketmanager
- mix
- Ausführung
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Fall
- Ziel
- Measure overlapping consumption of one shared Agent-backed request body in Req 0.7.2 HOW
- Pakete
-
req 0.7.2
- Umgebung
- elixir 1
- Erstellt
- 2026-08-17T04:46:38Z
Häufige Annahme
Two overlapping Req calls made from one request value each enumerate a shared one-shot body independently and both receive all four chunks.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- assert two overlapping Req.request! calls consume exactly four chunks in total from the shared Agent-backed stream
- assert at least one response body differs from the complete four-chunk sequence, proving the one-shot stream is shared rather than duplicated
Dateien
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract.exs
- test/contract_test.exs
- test/test_helper.exs
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9