зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1799914 - FOG Rust codegen test update for metrics with more than 8 labels. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D166387
This commit is contained in:
Родитель
53e40632bf
Коммит
e1d5d5896a
|
@ -61,6 +61,14 @@ test:
|
|||
labels:
|
||||
- one_label
|
||||
- two_labels
|
||||
- three_labels
|
||||
- four_labels
|
||||
- five_labels
|
||||
- six_labels
|
||||
- seven_labels
|
||||
- eight_labels
|
||||
- nine_labels
|
||||
- ten_labels
|
||||
telemetry_mirror: SOME_OTHER_KEYED_BOOL_SCALAR
|
||||
|
||||
counter_metric:
|
||||
|
|
|
@ -58,7 +58,7 @@ pub mod test {
|
|||
lifetime: Lifetime::Application,
|
||||
disabled: false,
|
||||
..Default::default()
|
||||
}, Some(vec!["one_label".into(), "two_labels".into()]))
|
||||
}, Some({const S: &'static str = "eight_labelsfive_labelsfour_labelsnine_labelsone_labelseven_labelssix_labelsten_labelsthree_labelstwo_labels";const LENGTHS: [u8; 10] = [12, 11, 11, 11, 9, 12, 10, 10, 12, 10];let mut offset = 0;LENGTHS.iter().map(|len| { let start = offset; offset += *len as usize; S[start..offset].into()}).collect()}))
|
||||
});
|
||||
|
||||
#[allow(non_upper_case_globals)]
|
||||
|
|
Загрузка…
Ссылка в новой задаче