Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmicu committed Sep 2, 2023
1 parent 5f781ed commit 895b65f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/api_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ async fn generate_operation_sequence(pool: &AnyPool) -> Result<Vec<DbOperation>,
Ok(operations)
}

// Randomly generate a number of insert/update/delete operations, possibly followed by undos and/or
// redos.
async fn test_randomized_api_test_with_undo_redo(
config: &SerdeMap,
compiled_datatype_conditions: &HashMap<String, CompiledCondition>,
compiled_rule_conditions: &HashMap<String, HashMap<String, Vec<ColumnRule>>>,
pool: &AnyPool,
) -> Result<(), sqlx::Error> {
// Randomly generate a number of insert/update/delete operations, possibly followed by undos
// and/or redos.
eprint!("Running test_randomized_api_test_with_undo_redo() ... ");
fn generate_value() -> String {
let mut value = Alphanumeric.sample_string(&mut rand::thread_rng(), 10);
Expand Down Expand Up @@ -620,10 +620,6 @@ async fn test_randomized_api_test_with_undo_redo(
Ok(())
}

// The data in a given row will be easy to randomize, but it would be nice if we could also
// randomize the function calls. This would be nice: Represent the possible operations in terms of
// a state transition diagram, and generate random paths through the state space whose length is
// between some minimum and maximum.
async fn test_undo_redo(
config: &SerdeMap,
compiled_datatype_conditions: &HashMap<String, CompiledCondition>,
Expand Down

0 comments on commit 895b65f

Please sign in to comment.