MCPcopy Create free account
hub / github.com/beefytech/Beef / TestFailed

Function TestFailed

BeefRT/rt/Internal.cpp:713–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711}
712
713void TestFailed(const Beefy::StringView& error, int stackOffset)
714{
715 if (gClientPipe != NULL)
716 {
717 Beefy::StringSimple errorString = error;
718
719 if (gTestBreakOnFailure)
720 {
721 SETUP_ERROR(errorString.c_str(), (int)(2 + stackOffset));
722 BF_DEBUG_BREAK();
723 }
724
725 Beefy::String str = ":TestFail\t";
726 str += errorString.c_str();
727 str.Replace('\n', '\r');
728 str += "\n";
729 TestString(str);
730 exit(1);
731 }
732}
733
734void Internal::Test_Init(char* testData)
735{

Callers

nothing calls this directly

Calls 3

TestStringFunction · 0.85
c_strMethod · 0.45
ReplaceMethod · 0.45

Tested by

no test coverage detected