Beispiel
Prove adapter return-shape mismatches are not normalized into normal return tuples in Req.request/2.
sha256:a5649b752a3ed1b2bc12b4951b3d34587b35e7af8d5081134dbafd228edfba23
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
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- elixir
- 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
- Prove adapter return-shape mismatches are not normalized into normal return tuples in Req.request/2. HOW
- Pakete
-
req 0.7.2
- Umgebung
- elixir
- Erstellt
- 2026-08-17T04:45:27Z
Häufige Annahme
Passing a malformed adapter to Req.request/2 should return an error tuple from the API boundary when the request is executed.
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 RuntimeError is raised when an adapter returns a non-tuple shape instead of {request, response} or {request, exception}; Req.request/2 is used (not a stubbed plugin path).
- assert the RuntimeError message includes 'expected adapter to return {request, response} or {request, exception}'.
Dateien
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract.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