| 158 | } |
| 159 | |
| 160 | std::vector<OverloadSignatureTestCase> GetOverloadSignatureTestCases() { |
| 161 | return { |
| 162 | { |
| 163 | .args = {StringType{}}, |
| 164 | .expected_signature = "hello(string)", |
| 165 | }, |
| 166 | { |
| 167 | .args = {IntType{}, UintType{}}, |
| 168 | .expected_signature = "hello(int,uint)", |
| 169 | }, |
| 170 | { |
| 171 | .args = {ListType(GetTestArena(), StringType{})}, |
| 172 | .expected_signature = "hello(list<string>)", |
| 173 | }, |
| 174 | { |
| 175 | .args = {ListType(GetTestArena(), TypeParamType("A"))}, |
| 176 | .expected_signature = "hello(list<~A>)", |
| 177 | }, |
| 178 | { |
| 179 | .args = {MapType(GetTestArena(), IntType{}, DynType{})}, |
| 180 | .expected_signature = "hello(map<int,dyn>)", |
| 181 | }, |
| 182 | { |
| 183 | .args = {MapType(GetTestArena(), TypeParamType("B"), |
| 184 | TypeParamType("C"))}, |
| 185 | .expected_signature = "hello(map<~B,~C>)", |
| 186 | }, |
| 187 | { |
| 188 | .args = {OpaqueType( |
| 189 | GetTestArena(), "bar", |
| 190 | {FunctionType(GetTestArena(), TypeParamType("D"), {})})}, |
| 191 | .expected_signature = "hello(bar<function<~D>>)", |
| 192 | }, |
| 193 | { |
| 194 | .args = {AnyType{}}, |
| 195 | .expected_signature = "hello(any)", |
| 196 | }, |
| 197 | { |
| 198 | .args = {DurationType{}}, |
| 199 | .expected_signature = "hello(duration)", |
| 200 | }, |
| 201 | { |
| 202 | .args = {TimestampType{}}, |
| 203 | .expected_signature = "hello(timestamp)", |
| 204 | }, |
| 205 | { |
| 206 | .args = {IntWrapperType{}}, |
| 207 | .expected_signature = "hello(int_wrapper)", |
| 208 | }, |
| 209 | { |
| 210 | .args = {MessageType( |
| 211 | GetTestingDescriptorPool()->FindMessageTypeByName( |
| 212 | "cel.expr.conformance.proto3.TestAllTypes"))}, |
| 213 | .expected_signature = |
| 214 | "hello(cel.expr.conformance.proto3.TestAllTypes)", |
| 215 | }, |
| 216 | {.args = {}, |
| 217 | .is_member = true, |
no test coverage detected