CodeSampleX

Beispiel

verify pgx.Conn.Begin in pkg:golang/github.com/jackc/pgx/v5@v5.10.0

sha256:6f79891a179ca3fbdd8fc48044ef98181d973b5fb4d1820fa498ea65698f32f4

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
1
Verifizierungsstufe
L4_CROSS_PASS

Deklarierte Umgebung

Ausführungskontext
go 1.26
Betriebssystem
linux
Architektur
x64
Runtime
go 1.26
Sprache
go
Paketmanager
gomod

Umgebungen der Verifizierungsläufe

go 1.26 · linux alpine/x64 · docker PASS
Ausführungskontext
go 1.26
Betriebssystem
linux alpine · musl
Architektur
x64
Runtime
go 1.26
Sprache
go
Paketmanager
gomod
Ausführung
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-19

Fall

HOW
Ziel
verify pgx.Conn.Begin in pkg:golang/github.com/jackc/pgx/v5@v5.10.0
Pakete
Symbole
  • pgx.Conn.Begin
  • pgx.Tx.Commit
  • pgx.Tx.Rollback
  • pgx.ErrTxClosed
Umgebung
go 1.26
Erstellt
2026-08-18T13:18:30Z

Contract

  1. pgx.Conn.Begin sends BEGIN and returns a transaction whose lifetime is not bound to the context used for the BEGIN command.
  2. Cancelling the Begin context after Begin returns does not send ROLLBACK and the transaction can still be committed with another context.
  3. Rollback must be called explicitly on abandoned transactions.
  4. Rollback after a successful Commit and repeated Rollback calls return pgx.ErrTxClosed without sending another server command, making defer tx.Rollback safe.

Dateien

  • PROMPT.md
  • contract_test.go
  • csx.json
  • go.mod
  • go.sum
  • spec.json

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym

Verifizierungsbelege

  • go 1.26 · linux alpine/x64 · docker PASS
    CONTAINER_RUN compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS go@1
    ed25519:2175b912ea1c23b1