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

Function ConstantList

extensions/sets_functions_benchmark_test.cc:157–164  ·  view source on GitHub ↗

Constant list literal that has the same elements as the bound test cases.

Source from the content-addressed store, hash-verified

155
156// Constant list literal that has the same elements as the bound test cases.
157std::string ConstantList(bool overlap, int len) {
158 std::string list_body;
159 for (int i = 0; i < len; i++) {
160 }
161 return absl::StrCat("[", overlap ? "1, " : "",
162 absl::StrJoin(std::vector<std::string>(len, "2"), ", "),
163 "]");
164}
165
166absl::StatusOr<std::unique_ptr<ListStorage>> RegisterModernLists(
167 bool overlap, int len, google::protobuf::Arena* absl_nonnull arena,

Callers 1

RunBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected