Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(property-vals): collapse duplicate group_identify property-type tests (#59954)

Andy Zhao376badcdc105
diff --git a/rust/property-vals-rs/src/fan_out.rs b/rust/property-vals-rs/src/fan_out.rs
index 05888fd8261f..e1ff46e3c333 100644
--- a/rust/property-vals-rs/src/fan_out.rs
+++ b/rust/property-vals-rs/src/fan_out.rs
@@ -248,19 +248,12 @@ mod tests {
}
#[test]
- fn group_identify_index_4_emits_group_4_type() {
+ fn group_identify_emits_group_type_matching_index() {
let tuples = fan_out_group(&group_identify(4, r#"{"region":"us-east"}"#));
assert_eq!(tuples.len(), 1);
assert_eq!(tuples[0].property_type, PropertyType::Group(4));
}
- #[test]
- fn group_identify_high_index_still_emits() {
- let tuples = fan_out_group(&group_identify(7, r#"{"plan":"enterprise"}"#));
- assert_eq!(tuples.len(), 1);
- assert_eq!(tuples[0].property_type, PropertyType::Group(7));
- }
-
#[test]
fn group_identify_missing_properties_drops() {
let g = GroupIdentify {