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