Merge pull request #4037 from KloolK:patch-1

PiperOrigin-RevId: 481734961
Change-Id: I629dc1ca3b10bf5fc6afc179b651a09081f5c919
This commit is contained in:
Copybara-Service 2022-10-17 14:08:04 -07:00
commit 6d71d901e1

View File

@ -102,23 +102,14 @@ namespace:
<span id="param-generators"></span> <span id="param-generators"></span>
| Parameter Generator | Behavior | | Parameter Generator | Behavior |
| ---------------------------- | -------------------------------------------- | | ------------------- | ---------------------------------------------------- |
| `Range(begin, end [, step])` | Yields values `{begin, begin+step, | | `Range(begin, end [, step])` | Yields values `{begin, begin+step, begin+step+step, ...}`. The values do not include `end`. `step` defaults to 1. |
: : begin+step+step, ...}`. The values do not : | `Values(v1, v2, ..., vN)` | Yields values `{v1, v2, ..., vN}`. |
: : include `end`. `step` defaults to 1. : | `ValuesIn(container)` or `ValuesIn(begin,end)` | Yields values from a C-style array, an STL-style container, or an iterator range `[begin, end)`. |
| `Values(v1, v2, ..., vN)` | Yields values `{v1, v2, ..., vN}`. | | `Bool()` | Yields sequence `{false, true}`. |
| `ValuesIn(container)` or | Yields values from a C-style array, an | | `Combine(g1, g2, ..., gN)` | Yields as `std::tuple` *n*-tuples all combinations (Cartesian product) of the values generated by the given *n* generators `g1`, `g2`, ..., `gN`. |
: `ValuesIn(begin,end)` : STL-style container, or an iterator range : | `ConvertGenerator<T>(g)` | Yields values generated by generator `g`, `static_cast` to `T`. |
: : `[begin, end)`. :
| `Bool()` | Yields sequence `{false, true}`. |
| `Combine(g1, g2, ..., gN)` | Yields as `std::tuple` *n*-tuples all |
: : combinations (Cartesian product) of the :
: : values generated by the given *n* generators :
: : `g1`, `g2`, ..., `gN`. :
| `ConvertGenerator<T>(g)` | Yields values generated by generator `g`, |
: : `static_cast` to `T`. :
The optional last argument *`name_generator`* is a function or functor that The optional last argument *`name_generator`* is a function or functor that
generates custom test name suffixes based on the test parameters. The function generates custom test name suffixes based on the test parameters. The function
must accept an argument of type must accept an argument of type