MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / AddGlobalTestEnvironment

Function AddGlobalTestEnvironment

src/gtest/gtest.h:18288–18290  ·  view source on GitHub ↗

A convenient wrapper for adding an environment for the test program. You should call this before RUN_ALL_TESTS() is called, probably in main(). If you use gtest_main, you need to call this before main() starts for it to take effect. For example, you can define a global variable like this: testing::Environment* const foo_env = testing::AddGlobalTestEnvironment(new FooEnvironment); However, we

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

AddEnvironmentMethod · 0.80

Tested by

no test coverage detected