MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / os_stack_trace_getter

Method os_stack_trace_getter

source/test/gtest/src/gtest.cc:6212–6222  ·  view source on GitHub ↗

Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.

Source from the content-addressed store, hash-verified

6210// otherwise, creates an OsStackTraceGetter, makes it the current
6211// getter, and returns it.
6212OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
6213 if (os_stack_trace_getter_ == nullptr) {
6214#ifdef GTEST_OS_STACK_TRACE_GETTER_
6215 os_stack_trace_getter_ = new GTEST_OS_STACK_TRACE_GETTER_;
6216#else
6217 os_stack_trace_getter_ = new OsStackTraceGetter;
6218#endif // GTEST_OS_STACK_TRACE_GETTER_
6219 }
6220
6221 return os_stack_trace_getter_;
6222}
6223
6224// Returns the most specific TestResult currently running.
6225TestResult* UnitTestImpl::current_test_result() {

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected