Skip to content

Commit 95ddfe6

Browse files
d
1 parent 77e538c commit 95ddfe6

File tree

6 files changed

+83
-23
lines changed

6 files changed

+83
-23
lines changed

cmake-build-cmake/.ninja_deps

152 Bytes
Binary file not shown.

cmake-build-cmake/.ninja_log

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
# ninja log v6
2-
31 3878 1721055676244173670 tests/CMakeFiles/Option_tester.dir/test_main.cpp.o c3a82df49cebf608
3-
31 4348 1721055676244799577 tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o bee51a59a9faec9e
4-
32 4120 1721055676245245503 tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o 28ec6f5c54cf60c2
5-
35 4372 1720974100669728067 tests/CMakeFiles/Option_tester.dir/market_data_tests.cpp.o 7392fc35dd320ee6
6-
27 3113 1720943657940005448 CMakeFiles/Option_pricer.dir/src/market_data.cpp.o c7da0c58039d7906
7-
18 323 1721058016963793715 build.ninja e3219aea2288c68
8-
33 3657 1721055676246226090 tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o 6b5f9d9d6aae0d70
9-
32 3485 1721055676245831941 tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o a0e3d0d7499ef87c
10-
19 2990 1720944834815940014 CMakeFiles/Option_pricer.dir/main.cpp.o c61305de29959cd9
11-
21 4059 1720973518946469648 tests/CMakeFiles/Option_tester.dir/payoff_tests.cpp.o ff08abb0ecc1a332
12-
25 2337 1720932839486844153 CMakeFiles/Option_pricer.dir/src/payoff.cpp.o 68205bc60a65ab4
13-
2990 3102 1720944837787796727 Option_pricer 8068c323144f72c1
14-
33 3487 1721055676246866783 tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o 29c2c6cca40a9b65
15-
4348 4470 1721055680561407195 tests/Option_tester c47550924c8b64
16-
26 2883 1720943657939370594 CMakeFiles/Option_pricer.dir/src/option.cpp.o 933112ed1944bd4a
172
5 1170 1720955557087634788 tests/CMakeFiles/Option_tester.dir/test.cpp.o c8c1f7b23ef8a20f
18-
12 253 1721058016963793715 build.ninja e3219aea2288c68
19-
20 1121 1721059118278176272 CMakeFiles/Option_pricer.dir/main.cpp.o 29be609f97193f5a
203
21 3423 1721059118279173551 CMakeFiles/Option_pricer.dir/src/option.cpp.o 34b12ad3b988bd8a
4+
4348 4470 1721055680561407195 tests/Option_tester c47550924c8b64
5+
33 3487 1721055676246866783 tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o 29c2c6cca40a9b65
6+
3682 4173 1721059121940349810 Option_pricer 8068c323144f72c1
217
21 3427 1721059118279570836 CMakeFiles/Option_pricer.dir/src/payoff.cpp.o f46db1c7e239eff3
8+
21 4059 1720973518946469648 tests/CMakeFiles/Option_tester.dir/payoff_tests.cpp.o ff08abb0ecc1a332
9+
20 1121 1721059118278176272 CMakeFiles/Option_pricer.dir/main.cpp.o 29be609f97193f5a
10+
32 3485 1721055676245831941 tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o a0e3d0d7499ef87c
11+
33 3657 1721055676246226090 tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o 6b5f9d9d6aae0d70
12+
12 253 1721062064821590577 build.ninja e3219aea2288c68
2213
22 3682 1721059118279905490 CMakeFiles/Option_pricer.dir/src/market_data.cpp.o 61d812ddbf6caa55
23-
3682 4173 1721059121940349810 Option_pricer 8068c323144f72c1
14+
35 4372 1720974100669728067 tests/CMakeFiles/Option_tester.dir/market_data_tests.cpp.o 7392fc35dd320ee6
15+
32 4120 1721055676245245503 tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o 28ec6f5c54cf60c2
16+
31 4348 1721055676244799577 tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o bee51a59a9faec9e
17+
31 3878 1721055676244173670 tests/CMakeFiles/Option_tester.dir/test_main.cpp.o c3a82df49cebf608
18+
13 368 1721062064821590577 build.ninja e3219aea2288c68
19+
35 926 1721062064895852943 tests/CMakeFiles/Option_tester.dir/test_option.cpp.o a32c329a8da0ea2d
20+
927 1406 1721062065787680098 tests/Option_tester 84dc17b496be3108
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
OptionTester 39 0.000214895
1+
OptionTester 40 0.0342838
22
---
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1-
Start testing: Jul 15 17:58 CEST
1+
Start testing: Jul 15 18:47 CEST
22
----------------------------------------------------------
3-
End testing: Jul 15 17:58 CEST
3+
1/1 Testing: OptionTester
4+
1/1 Test: OptionTester
5+
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/Option_tester"
6+
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests
7+
"OptionTester" start time: Jul 15 18:47 CEST
8+
Output:
9+
----------------------------------------------------------
10+
[==========] Running 12 tests from 4 test suites.
11+
[----------] Global test environment set-up.
12+
[----------] 6 tests from MarketDataTest
13+
[ RUN ] MarketDataTest.SingletonInstance
14+
[ OK ] MarketDataTest.SingletonInstance (0 ms)
15+
[ RUN ] MarketDataTest.NotifyObserver
16+
[ OK ] MarketDataTest.NotifyObserver (0 ms)
17+
[ RUN ] MarketDataTest.NotifyAllObservers
18+
[ OK ] MarketDataTest.NotifyAllObservers (0 ms)
19+
[ RUN ] MarketDataTest.AddAndUpdateStockData
20+
[ OK ] MarketDataTest.AddAndUpdateStockData (0 ms)
21+
[ RUN ] MarketDataTest.UpdateNonExistentStock
22+
[ OK ] MarketDataTest.UpdateNonExistentStock (0 ms)
23+
[ RUN ] MarketDataTest.RiskFreeRate
24+
[ OK ] MarketDataTest.RiskFreeRate (0 ms)
25+
[----------] 6 tests from MarketDataTest (0 ms total)
26+
27+
[----------] 1 test from StockDataTest
28+
[ RUN ] StockDataTest.InvalidStockData
29+
[ OK ] StockDataTest.InvalidStockData (0 ms)
30+
[----------] 1 test from StockDataTest (0 ms total)
31+
32+
[----------] 4 tests from PayoffSingleStrikeTest
33+
[ RUN ] PayoffSingleStrikeTest.PayoffCallTests
34+
[ OK ] PayoffSingleStrikeTest.PayoffCallTests (0 ms)
35+
[ RUN ] PayoffSingleStrikeTest.PayoffPutTests
36+
[ OK ] PayoffSingleStrikeTest.PayoffPutTests (0 ms)
37+
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalCallTests
38+
[ OK ] PayoffSingleStrikeTest.PayoffDigitalCallTests (0 ms)
39+
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalPutTests
40+
[ OK ] PayoffSingleStrikeTest.PayoffDigitalPutTests (0 ms)
41+
[----------] 4 tests from PayoffSingleStrikeTest (0 ms total)
42+
43+
[----------] 1 test from PayoffDoubleStrikesTest
44+
[ RUN ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests
45+
[ OK ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests (0 ms)
46+
[----------] 1 test from PayoffDoubleStrikesTest (0 ms total)
47+
48+
[----------] Global test environment tear-down
49+
[==========] 12 tests from 4 test suites ran. (0 ms total)
50+
[ PASSED ] 12 tests.
51+
<end of output>
52+
Test time = 1.37 sec
53+
----------------------------------------------------------
54+
Test Passed.
55+
"OptionTester" end time: Jul 15 18:47 CEST
56+
"OptionTester" time elapsed: 00:00:01
57+
----------------------------------------------------------
58+
59+
End testing: Jul 15 18:47 CEST

cmake-build-cmake/build.ninja

+8-1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ build tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o: CXX_COMPILER__Option
163163
OBJECT_DIR = tests/CMakeFiles/Option_tester.dir
164164
OBJECT_FILE_DIR = tests/CMakeFiles/Option_tester.dir
165165

166+
build tests/CMakeFiles/Option_tester.dir/test_option.cpp.o: CXX_COMPILER__Option_tester_unscanned_Debug /Users/anthony/CLionProjects/Option_pricer/tests/test_option.cpp || cmake_object_order_depends_target_Option_tester
167+
DEP_FILE = tests/CMakeFiles/Option_tester.dir/test_option.cpp.o.d
168+
FLAGS = -g -std=c++20 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -fcolor-diagnostics
169+
INCLUDES = -I/Users/anthony/CLionProjects/Option_pricer/include -isystem /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/include
170+
OBJECT_DIR = tests/CMakeFiles/Option_tester.dir
171+
OBJECT_FILE_DIR = tests/CMakeFiles/Option_tester.dir
172+
166173
build tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o: CXX_COMPILER__Option_tester_unscanned_Debug /Users/anthony/CLionProjects/Option_pricer/src/payoff.cpp || cmake_object_order_depends_target_Option_tester
167174
DEP_FILE = tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o.d
168175
FLAGS = -g -std=c++20 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -fcolor-diagnostics
@@ -192,7 +199,7 @@ build tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o: CXX_COMPILER__Opti
192199
#############################################
193200
# Link the executable tests/Option_tester
194201

195-
build tests/Option_tester: CXX_EXECUTABLE_LINKER__Option_tester_Debug tests/CMakeFiles/Option_tester.dir/test_main.cpp.o tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o | /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgmock_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgtest_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgmock.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgtest.a
202+
build tests/Option_tester: CXX_EXECUTABLE_LINKER__Option_tester_Debug tests/CMakeFiles/Option_tester.dir/test_main.cpp.o tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o tests/CMakeFiles/Option_tester.dir/test_option.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o | /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgmock_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgtest_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgmock.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgtest.a
196203
FLAGS = -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk
197204
LINK_LIBRARIES = /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgmock_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/manual-link/libgtest_main.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgmock.a /Users/anthony/.vcpkg-clion/vcpkg/installed/x64-osx/debug/lib/libgtest.a
198205
OBJECT_DIR = tests/CMakeFiles/Option_tester.dir

tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ add_executable(Option_tester
88
test_payoff.cpp
99
mock_classes.h
1010
test_support.h
11+
test_option.cpp
1112
../src/payoff.cpp
1213
../src/market_data.cpp
1314
../src/option.cpp
14-
#test_option.cpp
1515
)
1616

1717
# Link Google Test and Google Mock to the test executable

0 commit comments

Comments
 (0)