Remove designated initializer use from CombinedPredictionCalculatorTestCase

PiperOrigin-RevId: 512747781
This commit is contained in:
Sebastian Schmidt 2023-02-27 15:26:37 -08:00 committed by Copybara-Service
parent 1d927c5971
commit 1dca871d09

View File

@ -203,106 +203,111 @@ INSTANTIATE_TEST_CASE_P(
CombinedPredictionCalculatorTests, CombinedPredictionCalculatorTest,
testing::ValuesIn<CombinedPredictionCalculatorTestCase>({
{
.test_name = "TestCustomDramaWinnnerWith_HighCanned_Thresh",
.custom_negative_score = 0.1,
.drama_score = 0.5,
.llama_score = 0.3,
.drama_thresh = 0.25,
.llama_thresh = 0.7,
.canned_negative_score = 0.1,
.bazinga_score = 0.3,
.joy_score = 0.3,
.peace_score = 0.3,
.bazinga_thresh = 0.7,
.joy_thresh = 0.7,
.peace_thresh = 0.7,
.max_scoring_label = "CustomDrama",
.max_score = 0.5,
/* test_name= */ "TestCustomDramaWinnnerWith_HighCanned_Thresh",
/* custom_negative_score= */ 0.1,
/* drama_score= */ 0.5,
/* llama_score= */ 0.3,
/* drama_thresh= */ 0.25,
/* llama_thresh= */ 0.7,
/* canned_negative_score= */ 0.1,
/* bazinga_score= */ 0.3,
/* joy_score= */ 0.3,
/* peace_score= */ 0.3,
/* bazinga_thresh= */ 0.7,
/* joy_thresh= */ 0.7,
/* peace_thresh= */ 0.7,
/* max_scoring_label= */ "CustomDrama",
/* max_score= */ 0.5,
},
{
.test_name = "TestCannedWinnerWith_HighCustom_ZeroCanned_Thresh",
.custom_negative_score = 0.1,
.drama_score = 0.3,
.llama_score = 0.6,
.drama_thresh = 0.4,
.llama_thresh = 0.8,
.canned_negative_score = 0.1,
.bazinga_score = 0.4,
.joy_score = 0.3,
.peace_score = 0.2,
.bazinga_thresh = 0.0,
.joy_thresh = 0.0,
.peace_thresh = 0.0,
.max_scoring_label = "CannedBazinga",
.max_score = 0.4,
/* test_name= */ "TestCannedWinnerWith_HighCustom_ZeroCanned_"
"Thresh",
/* custom_negative_score= */ 0.1,
/* drama_score= */ 0.3,
/* llama_score= */ 0.6,
/* drama_thresh= */ 0.4,
/* llama_thresh= */ 0.8,
/* canned_negative_score= */ 0.1,
/* bazinga_score= */ 0.4,
/* joy_score= */ 0.3,
/* peace_score= */ 0.2,
/* bazinga_thresh= */ 0.0,
/* joy_thresh= */ 0.0,
/* peace_thresh= */ 0.0,
/* max_scoring_label= */ "CannedBazinga",
/* max_score= */ 0.4,
},
{
.test_name = "TestNegativeWinnerWith_LowCustom_HighCanned_Thresh",
.custom_negative_score = 0.5,
.drama_score = 0.1,
.llama_score = 0.4,
.drama_thresh = 0.1,
.llama_thresh = 0.05,
.canned_negative_score = 0.1,
.bazinga_score = 0.3,
.joy_score = 0.3,
.peace_score = 0.3,
.bazinga_thresh = 0.7,
.joy_thresh = 0.7,
.peace_thresh = 0.7,
.max_scoring_label = "Negative",
.max_score = 0.5,
/* test_name= */ "TestNegativeWinnerWith_LowCustom_HighCanned_"
"Thresh",
/* custom_negative_score= */ 0.5,
/* drama_score= */ 0.1,
/* llama_score= */ 0.4,
/* drama_thresh= */ 0.1,
/* llama_thresh= */ 0.05,
/* canned_negative_score= */ 0.1,
/* bazinga_score= */ 0.3,
/* joy_score= */ 0.3,
/* peace_score= */ 0.3,
/* bazinga_thresh= */ 0.7,
/* joy_thresh= */ 0.7,
/* peace_thresh= */ 0.7,
/* max_scoring_label= */ "Negative",
/* max_score= */ 0.5,
},
{
.test_name = "TestNegativeWinnerWith_HighCustom_HighCanned_Thresh",
.custom_negative_score = 0.8,
.drama_score = 0.1,
.llama_score = 0.1,
.drama_thresh = 0.25,
.llama_thresh = 0.7,
.canned_negative_score = 0.1,
.bazinga_score = 0.3,
.joy_score = 0.3,
.peace_score = 0.3,
.bazinga_thresh = 0.7,
.joy_thresh = 0.7,
.peace_thresh = 0.7,
.max_scoring_label = "Negative",
.max_score = 0.8,
/* test_name= */ "TestNegativeWinnerWith_HighCustom_HighCanned_"
"Thresh",
/* custom_negative_score= */ 0.8,
/* drama_score= */ 0.1,
/* llama_score= */ 0.1,
/* drama_thresh= */ 0.25,
/* llama_thresh= */ 0.7,
/* canned_negative_score= */ 0.1,
/* bazinga_score= */ 0.3,
/* joy_score= */ 0.3,
/* peace_score= */ 0.3,
/* bazinga_thresh= */ 0.7,
/* joy_thresh= */ 0.7,
/* peace_thresh= */ 0.7,
/* max_scoring_label= */ "Negative",
/* max_score= */ 0.8,
},
{
.test_name = "TestNegativeWinnerWith_HighCustom_HighCannedThresh2",
.custom_negative_score = 0.1,
.drama_score = 0.2,
.llama_score = 0.7,
.drama_thresh = 1.1,
.llama_thresh = 1.1,
.canned_negative_score = 0.1,
.bazinga_score = 0.3,
.joy_score = 0.3,
.peace_score = 0.3,
.bazinga_thresh = 0.7,
.joy_thresh = 0.7,
.peace_thresh = 0.7,
.max_scoring_label = "Negative",
.max_score = 0.1,
/* test_name= */ "TestNegativeWinnerWith_HighCustom_"
"HighCannedThresh2",
/* custom_negative_score= */ 0.1,
/* drama_score= */ 0.2,
/* llama_score= */ 0.7,
/* drama_thresh= */ 1.1,
/* llama_thresh= */ 1.1,
/* canned_negative_score= */ 0.1,
/* bazinga_score= */ 0.3,
/* joy_score= */ 0.3,
/* peace_score= */ 0.3,
/* bazinga_thresh= */ 0.7,
/* joy_thresh= */ 0.7,
/* peace_thresh= */ 0.7,
/* max_scoring_label= */ "Negative",
/* max_score= */ 0.1,
},
{
.test_name = "TestNegativeWinnerWith_HighCustom_HighCanned_Thresh3",
.custom_negative_score = 0.1,
.drama_score = 0.3,
.llama_score = 0.6,
.drama_thresh = 0.4,
.llama_thresh = 0.8,
.canned_negative_score = 0.3,
.bazinga_score = 0.2,
.joy_score = 0.3,
.peace_score = 0.2,
.bazinga_thresh = 0.5,
.joy_thresh = 0.5,
.peace_thresh = 0.5,
.max_scoring_label = "Negative",
.max_score = 0.1,
/* test_name= */ "TestNegativeWinnerWith_HighCustom_HighCanned_"
"Thresh3",
/* custom_negative_score= */ 0.1,
/* drama_score= */ 0.3,
/* llama_score= */ 0.6,
/* drama_thresh= */ 0.4,
/* llama_thresh= */ 0.8,
/* canned_negative_score= */ 0.3,
/* bazinga_score= */ 0.2,
/* joy_score= */ 0.3,
/* peace_score= */ 0.2,
/* bazinga_thresh= */ 0.5,
/* joy_thresh= */ 0.5,
/* peace_thresh= */ 0.5,
/* max_scoring_label= */ "Negative",
/* max_score= */ 0.1,
},
}),
[](const testing::TestParamInfo<