Skip to content

Commit

Permalink
chore: remove cfg(test) for debug functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jul 26, 2023
1 parent 160f503 commit 081d475
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions halo2-base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ impl<F: ScalarField> AssignedValue<F> {

/// Debug helper function for writing negative tests. This will change the **witness** value of the assigned cell
/// to `prank_value`. It does not change any constraints.
#[cfg(test)]
pub fn debug_prank(&mut self, prank_value: F) {
self.value = Assigned::Trivial(prank_value);
}
Expand Down Expand Up @@ -424,7 +423,6 @@ impl<F: ScalarField> Context<F> {
/// Helper function for debugging using `MockProver`. This adds a constraint that always fails.
/// The `MockProver` will print out the row, column where it fails, so it serves as a debugging "break point"
/// so you can add to your code to search for where the actual constraint failure occurs.
#[cfg(test)]
pub fn debug_assert_false(&mut self) {
let one = self.load_constant(F::one());
let zero = self.load_zero();
Expand Down

0 comments on commit 081d475

Please sign in to comment.