2 void test_golang_comments() {
3 test_parser_verify_parse(
4 test_parser_sourcefile("go", " //comment"),
5 "go", "", "//comment", 0
9 void test_golang_empty_comments() {
10 test_parser_verify_parse(
11 test_parser_sourcefile("go", " //\n"),
16 void test_golang_block_comment() {
17 test_parser_verify_parse(
18 test_parser_sourcefile("go", "/*c*/"),
23 void test_golang_comment_entities() {
24 test_parser_verify_entity(
25 test_parser_sourcefile("go", " //comment"),
26 "comment", "//comment"
28 test_parser_verify_entity(
29 test_parser_sourcefile("go", " /*comment*/"),
30 "comment", "/*comment*/"
34 void all_golang_tests() {
35 test_golang_comments();
36 test_golang_empty_comments();
37 test_golang_block_comment();
38 test_golang_comment_entities();