<commit_before>function(add_r3_test NAME)
  add_executable(${NAME} ${ARGN})

  target_include_directories(${NAME}
    PRIVATE
      ${CHECK_INCLUDE_DIRS}
      ${PROJECT_BINARY_DIR}
      ${PROJECT_SOURCE_DIR}/src)

  target_link_libraries(${NAME}
    ${CHECK_LDFLAGS}
    r3)

  add_test(NAME ${NAME} COMMAND ${NAME})
endfunction()

add_r3_test(check_tree check_tree.c)
add_r3_test(check_slug check_slug.c)
add_r3_test(check_routes check_routes.c)
add_r3_test(check_str_array check_str_array.c)
add_r3_test(check_host check_host.c)

add_executable(bench bench.c)
target_link_libraries(bench r3)
<commit_msg>test: run all of the test cases.<commit_after>function(add_r3_test NAME)
  add_executable(${NAME} ${ARGN})

  target_include_directories(${NAME}
    PRIVATE
      ${CHECK_INCLUDE_DIRS}
      ${PROJECT_BINARY_DIR}
      ${PROJECT_SOURCE_DIR}/src)

  target_link_libraries(${NAME}
    ${CHECK_LDFLAGS}
    r3)

  add_test(NAME ${NAME} COMMAND ${NAME})
endfunction()

add_r3_test(check_tree check_tree.c)
add_r3_test(check_slug check_slug.c)
add_r3_test(check_routes check_routes.c)
add_r3_test(check_str_array check_str_array.c)
add_r3_test(check_host check_host.c)
add_r3_test(check_remote_addr check_remote_addr.c)

add_executable(bench bench.c)
target_link_libraries(bench r3)

{'fraction_non_alphanumeric': 0.10653188180404355, 'fraction_numerical': 0.013219284603421462, 'mean_word_length': 6.4393063583815024, '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': '6397633', 'n_tokens_mistral': 525, 'n_tokens_neox': 514, 'n_words': 70}