| 47 | using TypeSignatureTest = testing::TestWithParam<TypeSignatureTestCase>; |
| 48 | |
| 49 | TEST_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 | |
| 62 | std::vector<TypeSignatureTestCase> GetTypeSignatureTestCases() { |
| 63 | return { |
nothing calls this directly
no test coverage detected