<commit_before>add_executable(unit_tests
  log2_tests.cpp
  state_ptr_tests.cpp
)

target_include_directories(unit_tests
	PUBLIC
		${PROJECT_SOURCE_DIR}/lib/googletest/googletest/include
		${PROJECT_SOURCE_DIR}/lib/googletest/googlemock/include
)

target_include_directories(unit_tests
	PRIVATE
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/testsrc
		${PROJECT_SOURCE_DIR}/src
)

target_link_libraries(unit_tests gtest gtest_main)
target_compile_options(unit_tests
	PUBLIC
		-O0             # disable optimizations as they screw testing
		-fno-inline -O0 # ^--- see above

		-Wall
		-Wextra
		-Wpedantic
		-Wconversion
		-Wsign-conversion

		-pedantic-errors # turns pedantic warnings into errors
)

add_test(
	NAME
		unit_tests
	COMMAND
		unit_tests
	WORKING_DIRECTORY
		${CMAKE_CURRENT_SOURCE_DIR}
)<commit_msg>added linebreak in CMakeLists.txt of testsrc<commit_after>add_executable(unit_tests
  log2_tests.cpp
  state_ptr_tests.cpp
)

target_include_directories(unit_tests
	PUBLIC
		${PROJECT_SOURCE_DIR}/lib/googletest/googletest/include
		${PROJECT_SOURCE_DIR}/lib/googletest/googlemock/include
)

target_include_directories(unit_tests
	PRIVATE
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/testsrc
		${PROJECT_SOURCE_DIR}/src
)

target_link_libraries(unit_tests gtest gtest_main)

target_compile_options(unit_tests
	PUBLIC
		-O0             # disable optimizations as they screw testing
		-fno-inline -O0 # ^--- see above

		-Wall
		-Wextra
		-Wpedantic
		-Wconversion
		-Wsign-conversion

		-pedantic-errors # turns pedantic warnings into errors
)

add_test(
	NAME
		unit_tests
	COMMAND
		unit_tests
	WORKING_DIRECTORY
		${CMAKE_CURRENT_SOURCE_DIR}
)
{'fraction_non_alphanumeric': 0.07806912991656734, 'fraction_numerical': 0.003575685339690107, 'mean_word_length': 4.75, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1036261', 'n_tokens_mistral': 654, 'n_tokens_neox': 603, 'n_words': 97}