Skip to content

Conversation

@crStiv
Copy link

@crStiv crStiv commented Oct 15, 2025

Description

Adds test coverage for the missing assignment error case in copyWitness function.

Changes

  • Added TestMissingAssignment test function in test/engine_test.go
  • Removed TODO comment from test/engine.go line 645
  • Test verifies that IsSolved properly panics when a witness variable is nil

Test Details

The test creates a circuit with two variables where one is assigned and the other is nil, then verifies that the expected "missing assignment" error is thrown during witness copying.

@ivokub ivokub added type: cleanup src: community Community originating PRs and issues labels Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

src: community Community originating PRs and issues type: cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants