Skip to content

Commit 8de1acf

Browse files
committed
Add test for priority size
Prioritization is performance critical in pubgrub. Closes #10851
1 parent b1491db commit 8de1acf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/uv-resolver/src/dependency_provider.rs

+13
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ impl DependencyProvider for UvDependencyProvider {
4646
unimplemented!()
4747
}
4848
}
49+
50+
#[cfg(test)]
51+
mod tests {
52+
use super::*;
53+
54+
#[test]
55+
fn priority_size() {
56+
assert_eq!(
57+
size_of::<<UvDependencyProvider as DependencyProvider>::Priority>(),
58+
24
59+
);
60+
}
61+
}

0 commit comments

Comments
 (0)