Skip to content

Commit c61f31c

Browse files
lhamesgithub-actions[bot]
authored andcommitted
Automerge: [orc-rt] Clean up SPSWrapperFunction unittest names.
Drop the redundant 'Test' prefix and rename transparent serialization tests to clarify their purpose.
2 parents 8aefeff + f8baf07 commit c61f31c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

orc-rt/unittests/SPSWrapperFunctionTest.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void void_noop_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
8282
[](move_only_function<void()> Return) { Return(); });
8383
}
8484

85-
TEST(SPSWrapperFunctionUtilsTest, TestVoidNoop) {
85+
TEST(SPSWrapperFunctionUtilsTest, VoidNoop) {
8686
bool Ran = false;
8787
SPSWrapperFunction<void()>::call(DirectCaller(nullptr, void_noop_sps_wrapper),
8888
[&](Error Err) {
@@ -102,7 +102,7 @@ static void add_via_lambda_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
102102
});
103103
}
104104

105-
TEST(SPSWrapperFunctionUtilsTest, TestBinaryOpViaLambda) {
105+
TEST(SPSWrapperFunctionUtilsTest, BinaryOpViaLambda) {
106106
int32_t Result = 0;
107107
SPSWrapperFunction<int32_t(int32_t, int32_t)>::call(
108108
DirectCaller(nullptr, add_via_lambda_sps_wrapper),
@@ -123,7 +123,7 @@ add_via_function_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
123123
Session, CallCtx, Return, ArgBytes, add_via_function);
124124
}
125125

126-
TEST(SPSWrapperFunctionUtilsTest, TestBinaryOpViaFunction) {
126+
TEST(SPSWrapperFunctionUtilsTest, BinaryOpViaFunction) {
127127
int32_t Result = 0;
128128
SPSWrapperFunction<int32_t(int32_t, int32_t)>::call(
129129
DirectCaller(nullptr, add_via_function_sps_wrapper),
@@ -139,7 +139,7 @@ add_via_function_pointer_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
139139
Session, CallCtx, Return, ArgBytes, &add_via_function);
140140
}
141141

142-
TEST(SPSWrapperFunctionUtilsTest, TestBinaryOpViaFunctionPointer) {
142+
TEST(SPSWrapperFunctionUtilsTest, BinaryOpViaFunctionPointer) {
143143
int32_t Result = 0;
144144
SPSWrapperFunction<int32_t(int32_t, int32_t)>::call(
145145
DirectCaller(nullptr, add_via_function_pointer_sps_wrapper),
@@ -161,7 +161,7 @@ static void improbable_feat_sps_wrapper(orc_rt_SessionRef Session,
161161
});
162162
}
163163

164-
TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningErrorSuccessCase) {
164+
TEST(SPSWrapperFunctionUtilsTest, TransparentConversionErrorSuccessCase) {
165165
bool DidRun = false;
166166
SPSWrapperFunction<SPSError(bool)>::call(
167167
DirectCaller(nullptr, improbable_feat_sps_wrapper),
@@ -174,7 +174,7 @@ TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningErrorSuccessCase) {
174174
EXPECT_TRUE(DidRun);
175175
}
176176

177-
TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningErrorFailureCase) {
177+
TEST(SPSWrapperFunctionUtilsTest, TransparentConversionErrorFailureCase) {
178178
std::string ErrMsg;
179179
SPSWrapperFunction<SPSError(bool)>::call(
180180
DirectCaller(nullptr, improbable_feat_sps_wrapper),
@@ -197,7 +197,7 @@ static void halve_number_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
197197
});
198198
}
199199

200-
TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningExpectedSuccessCase) {
200+
TEST(SPSWrapperFunctionUtilsTest, TransparentConversionExpectedSuccessCase) {
201201
int32_t Result = 0;
202202
SPSWrapperFunction<SPSExpected<int32_t>(int32_t)>::call(
203203
DirectCaller(nullptr, halve_number_sps_wrapper),
@@ -209,7 +209,7 @@ TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningExpectedSuccessCase) {
209209
EXPECT_EQ(Result, 1);
210210
}
211211

212-
TEST(SPSWrapperFunctionUtilsTest, TestFunctionReturningExpectedFailureCase) {
212+
TEST(SPSWrapperFunctionUtilsTest, TransparentConversionExpectedFailureCase) {
213213
std::string ErrMsg;
214214
SPSWrapperFunction<SPSExpected<int32_t>(int32_t)>::call(
215215
DirectCaller(nullptr, halve_number_sps_wrapper),
@@ -232,7 +232,7 @@ round_trip_int_pointer_sps_wrapper(orc_rt_SessionRef Session, void *CallCtx,
232232
});
233233
}
234234

235-
TEST(SPSWrapperFunctionUtilsTest, TestTransparentSerializationForPointers) {
235+
TEST(SPSWrapperFunctionUtilsTest, TransparentSerializationPointers) {
236236
int X = 42;
237237
int *P = nullptr;
238238
SPSWrapperFunction<SPSExecutorAddr(SPSExecutorAddr)>::call(
@@ -270,7 +270,7 @@ handle_with_reference_types_sps_wrapper(orc_rt_SessionRef Session,
270270
OpCounter<3> &&) { Return(); });
271271
}
272272

273-
TEST(SPSWrapperFunctionUtilsTest, TestHandlerWithReferences) {
273+
TEST(SPSWrapperFunctionUtilsTest, HandlerWithReferences) {
274274
// Test that we can handle by-value, by-ref, by-const-ref, and by-rvalue-ref
275275
// arguments, and that we generate the expected number of moves.
276276
OpCounter<0>::reset();

0 commit comments

Comments
 (0)