mirror of
https://github.com/google/googletest.git
synced 2024-12-28 11:10:44 +08:00
Googletest export
In the text fixtures section, point to the specific FAQ entry on constructors vs. `SetUp`. PiperOrigin-RevId: 268509969
This commit is contained in:
parent
33a0d4f6d7
commit
274afe50cf
@ -319,7 +319,7 @@ To create a fixture:
|
||||
4. If necessary, write a destructor or `TearDown()` function to release any
|
||||
resources you allocated in `SetUp()` . To learn when you should use the
|
||||
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.
|
||||
|
||||
When using a fixture, use `TEST_F()` instead of `TEST()` as it allows you to
|
||||
|
Loading…
x
Reference in New Issue
Block a user