Commit 274afe50 by Abseil Team Committed by Shaindel Schwartz

Googletest export

In the text fixtures section, point to the specific FAQ entry on constructors vs. `SetUp`. PiperOrigin-RevId: 268509969
parent 33a0d4f6
...@@ -319,7 +319,7 @@ To create a fixture: ...@@ -319,7 +319,7 @@ To create a fixture:
4. If necessary, write a destructor or `TearDown()` function to release any 4. If necessary, write a destructor or `TearDown()` function to release any
resources you allocated in `SetUp()` . To learn when you should use the resources you allocated in `SetUp()` . To learn when you should use the
constructor/destructor and when you should use `SetUp()/TearDown()`, read constructor/destructor and when you should use `SetUp()/TearDown()`, read
the [FAQ](faq.md). the [FAQ](faq.md#CtorVsSetUp).
5. If needed, define subroutines for your tests to share. 5. If needed, define subroutines for your tests to share.
When using a fixture, use `TEST_F()` instead of `TEST()` as it allows you to When using a fixture, use `TEST_F()` instead of `TEST()` as it allows you to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment