Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_cmake.h
1
2 void test_cmake_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("cmake", " #comment"),
5     "cmake", "", "#comment", 0
6   );
7 }
8
9 void test_cmake_empty_comments() {
10   test_parser_verify_parse(
11     test_parser_sourcefile("cmake", " #\n"),
12     "cmake", "", "#\n", 0
13   );
14 }
15
16 void test_cmake_comment_entities() {
17   test_parser_verify_entity(
18     test_parser_sourcefile("cmake", " #comment"),
19     "comment", "#comment"
20   );
21 }
22
23 void all_cmake_tests() {
24   test_cmake_comments();
25   test_cmake_empty_comments();
26   test_cmake_comment_entities();
27 }