@@ -678,7 +678,7 @@ class test_ue_pucch_config_builder : public ::testing::TestWithParam<pucch_cfg_b
678678
679679 // Check CSI and related PUCCH resource.
680680 if (has_csi) {
681- auto & csi_cfg = serv_cell_cfg.csi_meas_cfg .value ();
681+ const auto & csi_cfg = serv_cell_cfg.csi_meas_cfg .value ();
682682 srsran_assert (not csi_cfg.csi_report_cfg_list .empty () and
683683 std::holds_alternative<csi_report_config::periodic_or_semi_persistent_report_on_pucch>(
684684 csi_cfg.csi_report_cfg_list .front ().report_cfg_type ) and
@@ -919,9 +919,9 @@ TEST_P(test_ue_pucch_config_builder, test_validator_too_many_resources)
919919 nof_f1_res, nof_f2_res, f1_params, f2_params, bwp_size, NOF_OFDM_SYM_PER_SLOT_NORMAL_CP);
920920 }
921921
922- const unsigned harq_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_harq_cfg_per_ue - 1 );
923- const unsigned sr_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_sr_res_per_cell - 1 );
924- const unsigned csi_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_csi_res_per_cell - 1 );
922+ const auto harq_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_harq_cfg_per_ue - 1 );
923+ const auto sr_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_sr_res_per_cell - 1 );
924+ const auto csi_idx_cfg = test_rgen::uniform_int<unsigned >(0 , nof_csi_res_per_cell - 1 );
925925
926926 // Update pucch_cfg with the UE list of resources (with at max 8 HARQ F1, 8 HARQ F2, 4 SR).
927927 ue_pucch_config_builder (serv_cell_cfg,
@@ -938,22 +938,21 @@ TEST_P(test_ue_pucch_config_builder, test_validator_too_many_resources)
938938 ASSERT_TRUE (verify_nof_res_and_idx (harq_idx_cfg, sr_idx_cfg, csi_idx_cfg));
939939}
940940
941- INSTANTIATE_TEST_SUITE_P (
942- ue_pucch_config_builder,
943- test_ue_pucch_config_builder,
944- // clang-format off
941+ INSTANTIATE_TEST_SUITE_P (ue_pucch_config_builder,
942+ test_ue_pucch_config_builder,
943+ // clang-format off
945944 // nof: f0 | f1 | f2 | harq | sr | csi
946945 // nof: f0 | f1 | f2 | cfg | sr | csi
947946 ::testing::Values (
948- // pucch_cfg_builder_params{ 0, 3, 6, 1, 2, 1 },
949- // pucch_cfg_builder_params{ 0, 7, 3, 1, 1, 1 },
950- // pucch_cfg_builder_params{ 0, 8, 8, 1, 4, 1 },
951- // pucch_cfg_builder_params{ 0, 1, 1, 1, 1, 1 },
952- // pucch_cfg_builder_params{ 0, 7, 7, 1, 3, 1 },
953- // pucch_cfg_builder_params{ 0, 8, 8, 4, 4, 4 },
954- // pucch_cfg_builder_params{ 0, 5, 2, 10, 2, 7 },
955- // pucch_cfg_builder_params{ 0, 2, 7, 3, 7, 3 },
956- // pucch_cfg_builder_params{ 0, 6, 4, 5, 6, 2 },
947+ pucch_cfg_builder_params{ 0 , 3 , 6 , 1 , 2 , 1 },
948+ pucch_cfg_builder_params{ 0 , 7 , 3 , 1 , 1 , 1 },
949+ pucch_cfg_builder_params{ 0 , 8 , 8 , 1 , 4 , 1 },
950+ pucch_cfg_builder_params{ 0 , 1 , 1 , 1 , 1 , 1 },
951+ pucch_cfg_builder_params{ 0 , 7 , 7 , 1 , 3 , 1 },
952+ pucch_cfg_builder_params{ 0 , 8 , 8 , 4 , 4 , 4 },
953+ pucch_cfg_builder_params{ 0 , 5 , 2 , 10 , 2 , 7 },
954+ pucch_cfg_builder_params{ 0 , 2 , 7 , 3 , 7 , 3 },
955+ pucch_cfg_builder_params{ 0 , 6 , 4 , 5 , 6 , 2 },
957956 pucch_cfg_builder_params{ 6 , 0 , 6 , 1 , 8 , 8 },
958957 pucch_cfg_builder_params{ 5 , 0 , 3 , 1 , 1 , 1 },
959958 pucch_cfg_builder_params{ 6 , 0 , 6 , 1 , 4 , 1 },
@@ -969,5 +968,5 @@ INSTANTIATE_TEST_SUITE_P(
969968 pucch_cfg_builder_params{ 6 , 0 , 4 , 5 , 6 , 2 },
970969 pucch_cfg_builder_params{ 6 , 0 , 6 , 3 , 6 , 0 }
971970)
972- // clang-format on
971+ // clang-format on
973972);
0 commit comments