CodeSampleX

Beispiel

verify gin.Context.IsAborted in pkg:golang/github.com/gin-gonic/gin@v1.12.0

sha256:d19aeb89f2009fa9c9de5fcec594981e414e323e6525ad81b9c43640782b3439

Veröffentlichungsstatus. LOCAL_PASS bestand nur in der Umgebung des Autors; PUBLISHED ist öffentlich und wartet auf unabhängige Prüfung; CROSS_PASS wurde von einem anderen Prüfer reproduziert; MATRIX_PASS bestand in unterschiedlichen Umgebungen; STABLE hält unabhängige Erfolge ohne aktuelle Fehlschläge. Belegstärke. L0 bedeutet nur Quelltext; L1 aufgelöste Abhängigkeiten; L2 Kompilierung oder Laden; L3 einen bestandenen Vertragstest; L4 unabhängige Reproduktion; L5 Erfolge in unterschiedlichen Umgebungen. MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

Beleggrundlage
Unabhängige Kreuzprüfung
Verifizierungsbelege
3
Verifizierungsstufe
L4_CROSS_PASS
Deklarierte Umgebung go 1.26 linux x64 go 1.26 go gomod

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 SKIPPED compile:FAIL · contract:SKIPPED · load:SKIPPED · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-19
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 SKIPPED compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL
CONTAINER_RUN · golang@1
2026-08-20
go 1.26 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-20

Fall

HOW
Ziel
verify gin.Context.IsAborted in pkg:golang/github.com/gin-gonic/gin@v1.12.0
Pakete
Symbole
  • gin.Context.IsAborted
  • gin.Context.AbortWithStatusJSON
  • gin.Context.Abort
  • gin.Context.Next
Umgebung
go 1.26
Erstellt
2026-08-18T13:38:21Z

Contract

  1. assert Context.IsAborted returns false before any abort invocation
  2. assert AbortWithStatusJSON marks Context.IsAborted as true and returns 401 status
  3. assert aborted context prevents execution of downstream middleware and route handlers
  4. assert non-aborted request completes successfully with IsAborted remaining false

Dateien

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • spec.json
  • test/main.go

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym