Skip to content

Commit

Permalink
ModifGTest::gmock to GTest::GMock
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymakarewicz committed Jul 15, 2024
1 parent d63c334 commit e300368
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 59 deletions.
Binary file modified cmake-build-cmake/.ninja_deps
Binary file not shown.
2 changes: 2 additions & 0 deletions cmake-build-cmake/.ninja_log
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
10 3169 1721029673614539007 tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o a13b5b3a0fa6e0a2
9 3976 1721029673613891947 tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o cb69be9d437779f7
3976 4640 1721029677579914784 tests/Option_tester 81f2e189c753888a
40 3273 1721044360124013481 tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o 830d0f35bdb7ff04
3274 3901 1721044363357477337 tests/Option_tester 81f2e189c753888a
60 changes: 2 additions & 58 deletions cmake-build-cmake/Testing/Temporary/LastTest.log
Original file line number Diff line number Diff line change
@@ -1,59 +1,3 @@
Start testing: Jul 15 12:24 CEST
Start testing: Jul 15 13:52 CEST
----------------------------------------------------------
1/1 Testing: OptionTester
1/1 Test: OptionTester
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/Option_tester"
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests
"OptionTester" start time: Jul 15 12:24 CEST
Output:
----------------------------------------------------------
[==========] Running 12 tests from 4 test suites.
[----------] Global test environment set-up.
[----------] 6 tests from MarketDataTest
[ RUN ] MarketDataTest.SingletonInstance
[ OK ] MarketDataTest.SingletonInstance (0 ms)
[ RUN ] MarketDataTest.NotifyObserver
[ OK ] MarketDataTest.NotifyObserver (0 ms)
[ RUN ] MarketDataTest.NotifyAllObservers
[ OK ] MarketDataTest.NotifyAllObservers (0 ms)
[ RUN ] MarketDataTest.AddAndUpdateStockData
[ OK ] MarketDataTest.AddAndUpdateStockData (0 ms)
[ RUN ] MarketDataTest.UpdateNonExistentStock
[ OK ] MarketDataTest.UpdateNonExistentStock (0 ms)
[ RUN ] MarketDataTest.RiskFreeRate
[ OK ] MarketDataTest.RiskFreeRate (0 ms)
[----------] 6 tests from MarketDataTest (0 ms total)

[----------] 1 test from StockDataTest
[ RUN ] StockDataTest.InvalidStockData
[ OK ] StockDataTest.InvalidStockData (0 ms)
[----------] 1 test from StockDataTest (0 ms total)

[----------] 4 tests from PayoffSingleStrikeTest
[ RUN ] PayoffSingleStrikeTest.PayoffCallTests
[ OK ] PayoffSingleStrikeTest.PayoffCallTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffPutTests
[ OK ] PayoffSingleStrikeTest.PayoffPutTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalCallTests
[ OK ] PayoffSingleStrikeTest.PayoffDigitalCallTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalPutTests
[ OK ] PayoffSingleStrikeTest.PayoffDigitalPutTests (0 ms)
[----------] 4 tests from PayoffSingleStrikeTest (0 ms total)

[----------] 1 test from PayoffDoubleStrikesTest
[ RUN ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests
[ OK ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests (0 ms)
[----------] 1 test from PayoffDoubleStrikesTest (0 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 4 test suites ran. (0 ms total)
[ PASSED ] 12 tests.
<end of output>
Test time = 0.02 sec
----------------------------------------------------------
Test Passed.
"OptionTester" end time: Jul 15 12:24 CEST
"OptionTester" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 15 12:24 CEST
End testing: Jul 15 13:52 CEST
Binary file not shown.
Binary file modified cmake-build-cmake/tests/Option_tester
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ add_executable(Option_tester
mock_classes.h)

# Link Google Test and Google Mock to the test executable
target_link_libraries(Option_tester GTest::GTest GTest::Main GTest::gmock)
target_link_libraries(Option_tester GTest::GTest GTest::Main GTest::GMock)

# Optionally, register tests with CMake's testing system
add_test(NAME OptionTester COMMAND Option_tester)

0 comments on commit e300368

Please sign in to comment.