Skip to content

Conversation

Fibonacci747
Copy link

@Fibonacci747 Fibonacci747 commented Aug 26, 2025

Problem

Generated R1CS serialization tests were using t.Fatal(nil) instead of t.Fatal(err)
when handling ReadFrom errors, causing tests to fail without proper error context.

Solution

ixed the generator template internal/generator/backend/template/representations/tests/r1cs.go.tmpl
to use t.Fatal(err) and regenerated all affected test files.

Files Changed

  • Template: internal/generator/backend/template/representations/tests/r1cs.go.tmpl
  • Generated tests: All constraint/*/r1cs_test.go files

Testing

  • Code generation completed successfully
  • All affected test files updated consistently

Replace t.Fatal(nil) with t.Fatal(err) in r1cs.go.tmpl so generated
R1CS serialization tests correctly report reconstruction errors instead
of discarding them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant