Migrate registry extraction to native correction and explicit empty fallbacks

This commit is contained in:
2026-11-22 00:50:54 +00:00
parent 5d3696d4a0
commit 303d6589c5
36 changed files with 1107 additions and 1121 deletions

View File

@@ -41,7 +41,7 @@ func TestValidatorApprovesAndRegisters(t *testing.T) {
if err := Register(registry); err != nil {
t.Fatalf("Register() error = %v", err)
}
if got, ok := registry.Spec(Key); !ok || got != Spec() || got.ExecutionClass != contracts.ExecutionClassDeterministic {
if got, ok := registry.Spec(Key); !ok || !reflect.DeepEqual(got, Spec()) || got.ExecutionClass != contracts.ExecutionClassDeterministic {
t.Fatalf("registered spec = %#v, ok = %t", got, ok)
}
if _, err := DecodeOptions(map[string]any{"unexpected": true}); err == nil {