MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / main

Function main

tests/trycatchblocks.cc:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71};
72
73int main( void )
74{
75 // --------------------------------------------------------------------------
76 // -- Test if writing to disk works properly from within a catch block.
77 // --------------------------------------------------------------------------
78 try {
79 throw "hello";
80 }
81 catch ( ... ) {
82 TmpFile tmpF;
83 DBInterface interf( tmpF.fname );
84 interf.LogRequest( "test", "127.0.0.1", "hello world" );
85 if ( !interf.TestData() ) {
86 exit( EXIT_FAILURE );
87 }
88 }
89
90 exit( EXIT_SUCCESS );
91}

Callers

nothing calls this directly

Calls 2

LogRequestMethod · 0.80
TestDataMethod · 0.80

Tested by

no test coverage detected