Skip to content

Commit

Permalink
Add duplicated benchmark ID to assertion message.
Browse files Browse the repository at this point in the history
  • Loading branch information
bheisler committed Jul 15, 2022
1 parent ce8259e commit dfd7b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/benchmark_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ impl<'a, M: Measurement> BenchmarkGroup<'a, M> {

assert!(
!self.all_ids.contains(&id),
"Benchmark IDs must be unique within a group."
"Benchmark IDs must be unique within a group. Encountered duplicated benchmark ID {}",
&id
);

id.ensure_directory_name_unique(&self.criterion.all_directories);
Expand Down

0 comments on commit dfd7b65

Please sign in to comment.