summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2022-10-04 14:06:58 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-10-04 14:06:58 (GMT)
commit8c4dc11539e814ad7e16f3063dd0e36c4fd5a9b4 (patch)
tree02f80ef4b0f00b51b2acfcfbaae99247d25191a4 /docs
parent93f08be653c36ddc6943e9513fc14c7292b4d007 (diff)
parent79d0399dba364a335e3ca621a8cce091ef5706da (diff)
downloadgoogletest-8c4dc11539e814ad7e16f3063dd0e36c4fd5a9b4.zip
googletest-8c4dc11539e814ad7e16f3063dd0e36c4fd5a9b4.tar.gz
googletest-8c4dc11539e814ad7e16f3063dd0e36c4fd5a9b4.tar.bz2
Merge pull request #3967 from BMBurstein:custom_type_combine
PiperOrigin-RevId: 478775323 Change-Id: I92231bb8edd8e01b9b7cbe445c43dcf84f458521
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/testing.md23
1 files changed, 16 insertions, 7 deletions
diff --git a/docs/reference/testing.md b/docs/reference/testing.md
index dc47942..dd0b982 100644
--- a/docs/reference/testing.md
+++ b/docs/reference/testing.md
@@ -102,13 +102,22 @@ namespace:
<span id="param-generators"></span>
-| Parameter Generator | Behavior |
-| ------------------- | ---------------------------------------------------- |
-| `Range(begin, end [, step])` | Yields values `{begin, begin+step, begin+step+step, ...}`. The values do not include `end`. `step` defaults to 1. |
-| `Values(v1, v2, ..., vN)` | Yields values `{v1, v2, ..., vN}`. |
-| `ValuesIn(container)` or `ValuesIn(begin,end)` | Yields values from a C-style array, an STL-style container, or an iterator range `[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`. |
+| Parameter Generator | Behavior |
+| ---------------------------- | -------------------------------------------- |
+| `Range(begin, end [, step])` | Yields values `{begin, begin+step, |
+: : begin+step+step, ...}`. The values do not :
+: : include `end`. `step` defaults to 1. :
+| `Values(v1, v2, ..., vN)` | Yields values `{v1, v2, ..., vN}`. |
+| `ValuesIn(container)` or | Yields values from a C-style array, an |
+: `ValuesIn(begin,end)` : STL-style container, or an iterator range :
+: : `[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
generates custom test name suffixes based on the test parameters. The function