MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST_P

Function TEST_P

common/internal/signature_test.cc:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47using TypeSignatureTest = testing::TestWithParam<TypeSignatureTestCase>;
48
49TEST_P(TypeSignatureTest, TypeSignature) {
50 const auto& param = GetParam();
51
52 absl::StatusOr<std::string> signature =
53 common_internal::MakeTypeSignature(param.type);
54 if (!param.expected_error.empty()) {
55 EXPECT_THAT(signature, StatusIs(absl::StatusCode::kInvalidArgument,
56 HasSubstr(param.expected_error)));
57 } else {
58 EXPECT_THAT(signature, IsOkAndHolds(param.expected_signature));
59 }
60}
61
62std::vector<TypeSignatureTestCase> GetTypeSignatureTestCases() {
63 return {

Callers

nothing calls this directly

Calls 3

MakeTypeSignatureFunction · 0.85
MakeOverloadSignatureFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected