MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / os_stack_trace_getter

Method os_stack_trace_getter

tests/gtest/gtest-all.cc:7061–7071  ·  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

7059// otherwise, creates an OsStackTraceGetter, makes it the current
7060// getter, and returns it.
7061OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
7062 if (os_stack_trace_getter_ == nullptr) {
7063#ifdef GTEST_OS_STACK_TRACE_GETTER_
7064 os_stack_trace_getter_ = new GTEST_OS_STACK_TRACE_GETTER_;
7065#else
7066 os_stack_trace_getter_ = new OsStackTraceGetter;
7067#endif // GTEST_OS_STACK_TRACE_GETTER_
7068 }
7069
7070 return os_stack_trace_getter_;
7071}
7072
7073// Returns the most specific TestResult currently running.
7074TestResult* UnitTestImpl::current_test_result() {

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected