Beispiel
Measure inspectable JSON type-error wrapping from sigs.k8s.io/yaml.Unmarshal at v1.5.0
sha256:71d9098da3557f923adf9aa7874a7218fd8823a40911997fd69eb9691a60fb9e
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
- go
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- go
- Sprache
- go
- Paketmanager
- go
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- go 1.26
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- go 1.26
- Sprache
- go
- Paketmanager
- go
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17
Fall
- Ziel
- Measure inspectable JSON type-error wrapping from sigs.k8s.io/yaml.Unmarshal at v1.5.0 HOW
- Pakete
-
sigs.k8s.io/yaml v1.5.0
- Umgebung
- go
- Erstellt
- 2026-08-17T03:50:56Z
Häufige Annahme
A scalar type mismatch reported by sigs.k8s.io/yaml.Unmarshal is opaque text that cannot be matched as json.UnmarshalTypeError with errors.As.
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 unmarshaling a: not_a_number into an int field returns a non-nil error
- assert errors.As matches that error to an underlying *json.UnmarshalTypeError
Dateien
- NOTES.md
- csx.json
- go.mod
- go.sum
- yaml_test.go
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- go 1.26 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17 · ed25519:d91480838ac982c9