Codebase list ohcount / a828f03c-a62e-49d7-b2ec-6e6df59903d2/main test / unit / parsers / test_cmake.h
a828f03c-a62e-49d7-b2ec-6e6df59903d2/main

Tree @a828f03c-a62e-49d7-b2ec-6e6df59903d2/main (Download .tar.gz)

test_cmake.h @a828f03c-a62e-49d7-b2ec-6e6df59903d2/mainraw · history · blame

void test_cmake_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("cmake", " #comment"),
    "cmake", "", "#comment", 0
  );
}

void test_cmake_empty_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("cmake", " #\n"),
    "cmake", "", "#\n", 0
  );
}

void test_cmake_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("cmake", " #comment"),
    "comment", "#comment"
  );
}

void all_cmake_tests() {
  test_cmake_comments();
  test_cmake_empty_comments();
  test_cmake_comment_entities();
}