Package list ohcount / 4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main test / unit / parsers / test_cmake.h
4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main

Tree @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main (Download .tar.gz)

test_cmake.h @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/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();
}